public class OutboundHandshake
extends org.red5.server.net.rtmp.RTMPHandshake
algorithm, BLOWFISH_KEYS, buffer, cipherIn, cipherOut, DH_BASE, DH_MODULUS, DH_MODULUS_BYTES, DIGEST_LENGTH, fp9Handshake, GENUINE_FMS_KEY, GENUINE_FP_KEY, HANDSHAKE_TYPES, handshakeBytes, handshakeType, incomingPublicKey, KEY_LENGTH, keyAgreement, log, outgoingPublicKey, random, swfSize, swfVerificationBytes, XTEA_KEYS| Constructor and Description |
|---|
OutboundHandshake() |
OutboundHandshake(byte handshakeType) |
OutboundHandshake(byte handshakeType,
int algorithm) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createHandshakeBytes()
Creates the servers handshake bytes
|
org.apache.mina.core.buffer.IoBuffer |
decodeServerResponse1(org.apache.mina.core.buffer.IoBuffer in)
Decodes the first server response (S1) and returns a client response (C2).
|
boolean |
decodeServerResponse2(org.apache.mina.core.buffer.IoBuffer in)
Decodes the second server response (S2).
|
org.apache.mina.core.buffer.IoBuffer |
doHandshake(org.apache.mina.core.buffer.IoBuffer input) |
org.apache.mina.core.buffer.IoBuffer |
generateClientRequest1()
Create the first part of the outgoing connection request (C0 and C1).
|
byte[] |
getHandshakeBytes() |
void |
initSwfVerification(String swfFilePath)
Initialize SWF verification data.
|
boolean |
validate(byte[] handshake)
Determines the validation scheme for given input.
|
addBuffer, addBuffer, calculateDigest, calculateHMAC_SHA256, calculateSwfVerification, generateKeyPair, getBlowfishSignature, getBuffer, getBufferAsIoBuffer, getBufferSize, getCipherIn, getCipherOut, getDHOffset, getDHOffset1, getDHOffset2, getDigestOffset, getDigestOffset1, getDigestOffset2, getHandshakeType, getPublicKey, getSharedSecret, getSwfVerificationBytes, getXteaSignature, initRC4Encryption, setHandshakeType, useEncryption, validHandshakeType, verifyDigestpublic OutboundHandshake()
public OutboundHandshake(byte handshakeType)
public OutboundHandshake(byte handshakeType,
int algorithm)
public org.apache.mina.core.buffer.IoBuffer doHandshake(org.apache.mina.core.buffer.IoBuffer input)
protected void createHandshakeBytes()
createHandshakeBytes in class org.red5.server.net.rtmp.RTMPHandshakepublic org.apache.mina.core.buffer.IoBuffer generateClientRequest1()
C0 = 0x03 (client handshake type - 0x03, 0x06, 0x08, or 0x09) C1 = 1536 bytes from the client
public org.apache.mina.core.buffer.IoBuffer decodeServerResponse1(org.apache.mina.core.buffer.IoBuffer in)
S1 = 1536 bytes from the server C2 = Copy of S1 bytes
in - incoming handshake S1public boolean decodeServerResponse2(org.apache.mina.core.buffer.IoBuffer in)
S2 = Copy of C1 bytes
in - incoming handshake S2public boolean validate(byte[] handshake)
validate in interface org.red5.server.net.IHandshakevalidate in class org.red5.server.net.rtmp.RTMPHandshakeinput - handshake bytes from the serverpublic void initSwfVerification(String swfFilePath)
swfFilePath - path to the swf file or nullpublic byte[] getHandshakeBytes()
Copyright © 2005–2016 Red5. All rights reserved.