Class Dot11SsidElement

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Dot11SsidElement
    extends Dot11InformationElement
    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:
    IEEE802.11, Serialized Form
    • Field Detail

      • ENCODING

        private static final java.nio.charset.Charset ENCODING
      • ssid

        private final java.lang.String ssid
    • Constructor Detail

      • Dot11SsidElement

        private Dot11SsidElement​(byte[] rawData,
                                 int offset,
                                 int length)
                          throws IllegalRawDataException
        Parameters:
        rawData - rawData
        offset - offset
        length - length
        Throws:
        IllegalRawDataException - if parsing the raw data fails.
    • Method Detail

      • getSsid

        public java.lang.String getSsid()
        Returns:
        ssid
      • getBuilder

        public Dot11SsidElement.Builder getBuilder()
        Returns:
        a new Builder object populated with this object's fields.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Parameters:
        indent - indent
        Returns:
        the string representation of this object.