Class EAPOL

  • All Implemented Interfaces:
    IPacket

    public class EAPOL
    extends BasePacket
    EAPOL (Extensible Authentication Protocol over LAN) header.
    • Constructor Detail

      • EAPOL

        public EAPOL()
    • Method Detail

      • getVersion

        public byte getVersion()
        Gets the version.
        Returns:
        version
      • setVersion

        public EAPOL setVersion​(byte version)
        Sets the version.
        Parameters:
        version - EAPOL version
        Returns:
        this
      • getEapolType

        public byte getEapolType()
        Gets the type.
        Returns:
        EAPOL type
      • setEapolType

        public EAPOL setEapolType​(byte eapolType)
        Sets the EAPOL type.
        Parameters:
        eapolType - EAPOL type
        Returns:
        this
      • getPacketLength

        public short getPacketLength()
        Gets the packet length.
        Returns:
        packet length
      • setPacketLength

        public EAPOL setPacketLength​(short packetLen)
        Sets the packet length.
        Parameters:
        packetLen - packet length
        Returns:
        this
      • serialize

        public byte[] serialize()
        Serializes the packet, based on the code/type using the payload to compute its length.
        Returns:
        this
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class BasePacket
      • deserializer

        public static Deserializer<EAPOL> deserializer()
        Deserializer for EAPOL packets.
        Returns:
        deserializer
      • toString

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