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(java.lang.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.
|
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public 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()
IExtensionHeader
getNextHeader
in interface IExtensionHeader
public Authentication setNextHeader(byte nextHeader)
IExtensionHeader
setNextHeader
in interface IExtensionHeader
nextHeader
- 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()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<Authentication> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object