Package org.red5.io.sctp.packet.chunks
Class StateCookie
- java.lang.Object
-
- org.red5.io.sctp.packet.chunks.StateCookie
-
public class StateCookie extends Object
-
-
Constructor Summary
Constructors Constructor Description StateCookie(byte[] data, int offset, int length)StateCookie(int verificationTag, int initialTSN, int advertisedReceiverWindowCredit, int numberOfOutboundStreams, int numberOfInboundStreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes(Mac messageAuthenticationCode)shortgetCurrentLifespan()intgetInitialTSN()byte[]getMac()intgetSize()intgetVerificationTag()booleanisValid(Mac mac)
-
-
-
Method Detail
-
getBytes
public byte[] getBytes(Mac messageAuthenticationCode) throws InvalidKeyException, NoSuchAlgorithmException
-
isValid
public boolean isValid(Mac mac)
-
getVerificationTag
public int getVerificationTag()
-
getInitialTSN
public int getInitialTSN()
-
getMac
public byte[] getMac()
-
getCurrentLifespan
public short getCurrentLifespan()
-
getSize
public int getSize()
-
-