public class EncapSecurityPayload extends BasePacket
Modifier and Type | Field and Description |
---|---|
static byte |
HEADER_LENGTH |
protected int |
securityParamIndex |
protected int |
sequence |
parent, payload
Constructor and Description |
---|
EncapSecurityPayload() |
Modifier and Type | Method and Description |
---|---|
static Deserializer<EncapSecurityPayload> |
deserializer()
Deserializer function for encapsulated security payload headers.
|
boolean |
equals(java.lang.Object obj) |
int |
getSecurityParamIndex()
Gets the security parameter index of this header.
|
int |
getSequence()
Gets the sequence number of this header.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
EncapSecurityPayload |
setSecurityParamIndex(int securityParamIndex)
Sets the security parameter index of this header.
|
EncapSecurityPayload |
setSequence(int sequence)
Sets the sequence number of this header.
|
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte HEADER_LENGTH
protected int securityParamIndex
protected int sequence
public int getSecurityParamIndex()
public EncapSecurityPayload setSecurityParamIndex(int securityParamIndex)
securityParamIndex
- the security parameter index to setpublic int getSequence()
public EncapSecurityPayload setSequence(int sequence)
sequence
- the sequence number to setpublic byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<EncapSecurityPayload> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object