Class IpV4Rfc791SecurityOption
java.lang.Object
org.pcap4j.packet.IpV4Rfc791SecurityOption
- All Implemented Interfaces:
Serializable, IpV4Packet.IpV4Option
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IpV4SecurityOptionCompartmentsprivate final IpV4SecurityOptionHandlingRestrictionsprivate final byteprivate final IpV4SecurityOptionSecurityprivate static final longprivate final IpV4SecurityOptionTransmissionControlCodeprivate final IpV4OptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV4Rfc791SecurityOption(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteintbyte[]getTcc()getType()inthashCode()intlength()static IpV4Rfc791SecurityOptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
length
private final byte length -
security
-
compartments
-
handlingRestrictions
-
tcc
-
-
Constructor Details
-
IpV4Rfc791SecurityOption
private IpV4Rfc791SecurityOption(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV4Rfc791SecurityOption
-
-
Method Details
-
newInstance
public static IpV4Rfc791SecurityOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new IpV4Rfc791SecurityOption object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIpV4Packet.IpV4Option- Returns:
- type
-
getLength
public byte getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getSecurity
- Returns:
- security
-
getCompartments
- Returns:
- compartments
-
getHandlingRestrictions
- Returns:
- handlingRestrictions
-
getTcc
- Returns:
- tcc
-
length
public int length()- Specified by:
lengthin interfaceIpV4Packet.IpV4Option- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV4Packet.IpV4Option- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
-