public class Authentication extends BasePacket implements IExtensionHeader
| Modifier and Type | Field and Description |
|---|---|
static byte |
FIXED_HEADER_LENGTH |
protected byte[] |
integrityCheck |
static byte |
LENGTH_UNIT |
static byte |
MINUS |
protected byte |
nextHeader |
protected byte |
payloadLength |
protected int |
securityParamIndex |
protected int |
sequence |
parent, payload| Constructor and Description |
|---|
Authentication() |
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<Authentication> |
deserializer()
Deserializer function for authentication headers.
|
boolean |
equals(Object obj) |
byte[] |
getIntegrityCheck()
Gets the integrity check value of this header.
|
byte |
getNextHeader()
Gets the type of next header.
|
byte |
getPayloadLength()
Gets the payload length of this header.
|
int |
getSecurityParamIndex()
Gets the security parameter index of this header.
|
int |
getSequence()
Gets the sequence number of this header.
|
int |
getTotalLength()
Gets the total length of this header.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
Authentication |
setIngegrityCheck(byte[] integrityCheck)
Sets the integrity check value of this header.
|
Authentication |
setNextHeader(byte nextHeader)
Sets the type of next header.
|
Authentication |
setPayloadLength(byte payloadLength)
Sets the payload length of this header.
|
Authentication |
setSecurityParamIndex(int securityParamIndex)
Sets the security parameter index of this header.
|
Authentication |
setSequence(int sequence)
Sets the sequence number of this header.
|
String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final byte FIXED_HEADER_LENGTH
public static final byte LENGTH_UNIT
public static final byte MINUS
protected byte nextHeader
protected byte payloadLength
protected int securityParamIndex
protected int sequence
protected byte[] integrityCheck
public byte getNextHeader()
IExtensionHeadergetNextHeader in interface IExtensionHeaderpublic Authentication setNextHeader(byte nextHeader)
IExtensionHeadersetNextHeader in interface IExtensionHeadernextHeader - the next header to setpublic byte getPayloadLength()
public Authentication setPayloadLength(byte payloadLength)
payloadLength - the payload length to setpublic int getSecurityParamIndex()
public Authentication setSecurityParamIndex(int securityParamIndex)
securityParamIndex - the security parameter index to setpublic int getSequence()
public Authentication setSequence(int sequence)
sequence - the sequence number to setpublic byte[] getIntegrityCheck()
public Authentication setIngegrityCheck(byte[] integrityCheck)
integrityCheck - the integrity check value to setpublic int getTotalLength()
public byte[] serialize()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic static Deserializer<Authentication> deserializer()