Package org.onlab.packet
Class EAPOLMkpduBasicParameterSet.SCI
- java.lang.Object
-
- org.onlab.packet.EAPOLMkpduBasicParameterSet.SCI
-
- Enclosing class:
- EAPOLMkpduBasicParameterSet
public static class EAPOLMkpduBasicParameterSet.SCI extends java.lang.Object
MKA Secure Channel Identifier.
-
-
Field Summary
Fields Modifier and Type Field Description static int
PORT_OFFSET
static int
SYSTEM_IDENTIFIER_LENGTH
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
address()
To return address.byte[]
array()
Convert to byte array.short
port()
To return Port.void
setAdddress(byte[] address)
To set address.void
setPort(short port)
TO set Port.
-
-
-
Field Detail
-
SYSTEM_IDENTIFIER_LENGTH
public static final int SYSTEM_IDENTIFIER_LENGTH
- See Also:
- Constant Field Values
-
PORT_OFFSET
public static final int PORT_OFFSET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SCI
public SCI(byte[] sci)
To set SCI from MAC address and port stream.- Parameters:
sci
- , type byte[]
-
SCI
public SCI(byte[] address, short port) throws java.lang.IllegalArgumentException
To set SCI from MAC address and port number.- Parameters:
address
- ,type byte[]port
- ,type short- Throws:
java.lang.IllegalArgumentException
- Exceptions
-
-
Method Detail
-
setAdddress
public void setAdddress(byte[] address) throws java.lang.IllegalArgumentException
To set address.- Parameters:
address
- , type byte[]- Throws:
java.lang.IllegalArgumentException
- if address is not set
-
address
public byte[] address()
To return address.- Returns:
- address , type byte[]
-
setPort
public void setPort(short port)
TO set Port.- Parameters:
port
- , type short
-
port
public short port()
To return Port.- Returns:
- port , type short
-
array
public byte[] array()
Convert to byte array.- Returns:
- bb.array() ,type byte[]
-
-