java.lang.Object
org.pcap4j.packet.Dot11InformationElement
org.pcap4j.packet.Dot11SsidElement
- All Implemented Interfaces:
Serializable
IEEE802.11 SSID element
1 1 0-32
+----------+----------+-------------
|Element ID| Length | SSID
+----------+----------+-------------
Element ID: 0
A SSID field of length 0 is used within Probe Request management frames to indicate the wildcard
SSID. The wildcard SSID is also used in Beacon and Probe Response frames transmitted by mesh
STAs. When the UTF-8 SSID subfield of the Extended Capabilities element is equal to 1 in the
frame that includes the SSID element, the SSID is interpreted using UTF-8 encoding.- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11SsidElement(byte[] rawData, int offset, int length) privateDot11SsidElement(Dot11SsidElement.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getSsid()inthashCode()intlength()static Dot11SsidElementnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()Methods inherited from class org.pcap4j.packet.Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ENCODING
-
ssid
-
-
Constructor Details
-
Dot11SsidElement
- Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11SsidElement
- Parameters:
builder- builder
-
-
Method Details
-
newInstance
public static Dot11SsidElement 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 Dot11SsidElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getSsid
- Returns:
- ssid
-
length
public int length()- Specified by:
lengthin classDot11InformationElement- Returns:
- the length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain classDot11InformationElement- Returns:
- the raw data.
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDot11InformationElement
-
equals
- Overrides:
equalsin classDot11InformationElement
-
toString
-
toString
- Parameters:
indent- indent- Returns:
- the string representation of this object.
-