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 interface
EAPOLMkpduDistributedSAKParameterSet.KeyWrapper
-
Field Summary
Fields Modifier and Type Field Description static byte
CONFIDENTIALITY_OFFSET
static byte
DISTRIBUTED_AN_OFFSET
static byte
DSAKPS_GENERAL_MASK
static short
SAK_FIELD_LENGTH
static short
TOTAL_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.short
getBodyLength()
Retrieve Body Length field of Parameter Set.byte
getParameterSetType()
Retrieve Type of Parameter Set.short
getTotalLength()
Total length; ie.byte[]
serialize()
Utility function for Serializing Parameter Set.void
setBodyLength(short bodyLength)
void
setConfidentialityOffset(byte confidentialityOffset)
void
setDistributedAN(byte distributedAN)
void
setKeyNumber(int keyNumber)
void
setKeyWrapper(EAPOLMkpduDistributedSAKParameterSet.KeyWrapper sakWrapper)
void
setSAK(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:EAPOLMkpduParameterSet
Retrieve Type of Parameter Set.- Specified by:
getParameterSetType
in interfaceEAPOLMkpduParameterSet
- Returns:
- parameter set type.
-
getTotalLength
public short getTotalLength()
Description copied from interface:EAPOLMkpduParameterSet
Total length; ie. including header and body length.- Specified by:
getTotalLength
in interfaceEAPOLMkpduParameterSet
- Returns:
- short value.
-
getBodyLength
public short getBodyLength()
Description copied from interface:EAPOLMkpduParameterSet
Retrieve Body Length field of Parameter Set.- Specified by:
getBodyLength
in interfaceEAPOLMkpduParameterSet
- Returns:
- body length of parameter set.
-
setBodyLength
public void setBodyLength(short bodyLength)
-
serialize
public byte[] serialize()
Description copied from interface:EAPOLMkpduParameterSet
Utility function for Serializing Parameter Set.- Specified by:
serialize
in interfaceEAPOLMkpduParameterSet
- Specified by:
serialize
in 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)
-
-