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(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. 
 | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic 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()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic static Deserializer<EncapSecurityPayload> deserializer()