Package org.onlab.packet
Class EAPOLMkpduDistributedSAKParameterSet
- java.lang.Object
 - 
- org.onlab.packet.BasePacket
 - 
- org.onlab.packet.EAPOLMkpduDistributedSAKParameterSet
 
 
 
- 
- All Implemented Interfaces:
 EAPOLMkpduParameterSet,IPacket
public class EAPOLMkpduDistributedSAKParameterSet extends BasePacket implements EAPOLMkpduParameterSet
Class representing MKPDU MACSec SAK Use Parameter Set (GCM-AES 128). IEEE 802.1X Clause 11; Figure 11-11 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEAPOLMkpduDistributedSAKParameterSet.KeyWrapper 
- 
Field Summary
Fields Modifier and Type Field Description static byteCONFIDENTIALITY_OFFSETstatic byteDISTRIBUTED_AN_OFFSETstatic byteDSAKPS_GENERAL_MASKstatic shortSAK_FIELD_LENGTHstatic shortTOTAL_DSAKPS_BODY_LENGTH- 
Fields inherited from class org.onlab.packet.BasePacket
parent, payload 
- 
Fields inherited from interface org.onlab.packet.EAPOLMkpduParameterSet
BODY_LENGTH_MSB_MASK, BODY_LENGTH_MSB_SHIFT, BODY_LENGTH_OCTET_OFFSET, FIELD_MI_LENGTH, FIELD_MN_LENGTH, FIELD_SCI_LENGTH, PARAMETERSET_TYPE_BASIC, PARAMETERSET_TYPE_DISTRIBUTED_SAK, PARAMETERSET_TYPE_ICV_INDICATOR, PARAMETERSET_TYPE_LIVE_PEER_LIST, PARAMETERSET_TYPE_MACSEC_SAK_USE, PARAMETERSET_TYPE_POTENTIAL_PEER_LIST 
 - 
 
- 
Constructor Summary
Constructors Constructor Description EAPOLMkpduDistributedSAKParameterSet() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<EAPOLMkpduDistributedSAKParameterSet>deserializer()Deserializer function for Distributed SAK Parameter Set.shortgetBodyLength()Retrieve Body Length field of Parameter Set.bytegetParameterSetType()Retrieve Type of Parameter Set.shortgetTotalLength()Total length; ie.byte[]serialize()Utility function for Serializing Parameter Set.voidsetBodyLength(short bodyLength)voidsetConfidentialityOffset(byte confidentialityOffset)voidsetDistributedAN(byte distributedAN)voidsetKeyNumber(int keyNumber)voidsetKeyWrapper(EAPOLMkpduDistributedSAKParameterSet.KeyWrapper sakWrapper)voidsetSAK(byte[] sak)- 
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload 
 - 
 
 - 
 
- 
- 
Field Detail
- 
TOTAL_DSAKPS_BODY_LENGTH
public static final short TOTAL_DSAKPS_BODY_LENGTH
- See Also:
 - Constant Field Values
 
 
- 
SAK_FIELD_LENGTH
public static final short SAK_FIELD_LENGTH
- See Also:
 - Constant Field Values
 
 
- 
DSAKPS_GENERAL_MASK
public static final byte DSAKPS_GENERAL_MASK
- See Also:
 - Constant Field Values
 
 
- 
DISTRIBUTED_AN_OFFSET
public static final byte DISTRIBUTED_AN_OFFSET
- See Also:
 - Constant Field Values
 
 
- 
CONFIDENTIALITY_OFFSET
public static final byte CONFIDENTIALITY_OFFSET
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getParameterSetType
public byte getParameterSetType()
Description copied from interface:EAPOLMkpduParameterSetRetrieve Type of Parameter Set.- Specified by:
 getParameterSetTypein interfaceEAPOLMkpduParameterSet- Returns:
 - parameter set type.
 
 
- 
getTotalLength
public short getTotalLength()
Description copied from interface:EAPOLMkpduParameterSetTotal length; ie. including header and body length.- Specified by:
 getTotalLengthin interfaceEAPOLMkpduParameterSet- Returns:
 - short value.
 
 
- 
getBodyLength
public short getBodyLength()
Description copied from interface:EAPOLMkpduParameterSetRetrieve Body Length field of Parameter Set.- Specified by:
 getBodyLengthin interfaceEAPOLMkpduParameterSet- Returns:
 - body length of parameter set.
 
 
- 
setBodyLength
public void setBodyLength(short bodyLength)
 
- 
serialize
public byte[] serialize()
Description copied from interface:EAPOLMkpduParameterSetUtility function for Serializing Parameter Set.- Specified by:
 serializein interfaceEAPOLMkpduParameterSet- Specified by:
 serializein interfaceIPacket- Returns:
 - byte[] value
 
 
- 
deserializer
public static Deserializer<EAPOLMkpduDistributedSAKParameterSet> deserializer()
Deserializer function for Distributed SAK Parameter Set.- Returns:
 - deserializer function
 
 
- 
setDistributedAN
public void setDistributedAN(byte distributedAN)
 
- 
setConfidentialityOffset
public void setConfidentialityOffset(byte confidentialityOffset)
 
- 
setKeyNumber
public void setKeyNumber(int keyNumber)
 
- 
setSAK
public void setSAK(byte[] sak)
 
- 
setKeyWrapper
public void setKeyWrapper(EAPOLMkpduDistributedSAKParameterSet.KeyWrapper sakWrapper)
 
 - 
 
 -