public class OutboundHandshake
extends org.red5.server.net.rtmp.RTMPHandshake
cipherIn, cipherOut, DH_BASE, DH_MODULUS, DH_MODULUS_BYTES, DIGEST_LENGTH, GENUINE_FMS_KEY, GENUINE_FP_KEY, HANDSHAKE_PAD_BYTES, HANDSHAKE_SIZE_SERVER, handshakeBytes, handshakeType, incomingPublicKey, KEY_LENGTH, keyAgreement, log, outgoingPublicKey, random, swfVerificationBytes, validationScheme| Constructor and Description |
|---|
OutboundHandshake() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createHandshakeBytes()
Creates the servers handshake bytes
|
boolean |
decodeServerResponse(org.apache.mina.core.buffer.IoBuffer in) |
org.apache.mina.core.buffer.IoBuffer |
doHandshake(org.apache.mina.core.buffer.IoBuffer input)
Generates initial handshake request, validates response, and generates final handshake.
|
org.apache.mina.core.buffer.IoBuffer |
generateClientRequest1()
Create the first part of the outgoing (client) connection request.
|
org.apache.mina.core.buffer.IoBuffer |
generateClientRequest2() |
protected byte[] |
getFourBytesFrom(org.apache.mina.core.buffer.IoBuffer buf,
int offset) |
void |
initSwfVerification(String swfFilePath)
Initialize SWF verification data.
|
boolean |
validate(org.apache.mina.core.buffer.IoBuffer input)
Determines the validation scheme for given input.
|
calculateHMAC_SHA256, calculateHMAC_SHA256, generateKeyPair, getCipherIn, getCipherOut, getDHOffset, getDHOffset0, getDHOffset1, getDigestOffset, getDigestOffset0, getDigestOffset1, getHandshakeBytes, getHandshakeType, getPublicKey, getSharedSecret, getSwfVerificationBytes, setHandshakeTypepublic org.apache.mina.core.buffer.IoBuffer doHandshake(org.apache.mina.core.buffer.IoBuffer input)
input - incoming RTMP bytesprotected void createHandshakeBytes()
createHandshakeBytes in class org.red5.server.net.rtmp.RTMPHandshakepublic org.apache.mina.core.buffer.IoBuffer generateClientRequest1()
public boolean decodeServerResponse(org.apache.mina.core.buffer.IoBuffer in)
public org.apache.mina.core.buffer.IoBuffer generateClientRequest2()
protected byte[] getFourBytesFrom(org.apache.mina.core.buffer.IoBuffer buf, int offset)
public boolean validate(org.apache.mina.core.buffer.IoBuffer input)
validate in interface org.red5.server.net.IHandshakevalidate in class org.red5.server.net.rtmp.RTMPHandshakeinput - public void initSwfVerification(String swfFilePath)
swfFilePath - path to the swf file or nullCopyright © 2005–2015 Red5. All rights reserved.