Class NASIdentifierAttribute


  • public class NASIdentifierAttribute
    extends Attribute
    Class representing the structure of the NAS-Identifier attribute as specified in section 5.32 of RFC 2865 and able to be instantiated from the on-the-wire bytes or model objects.
    • Constructor Detail

      • NASIdentifierAttribute

        public NASIdentifierAttribute​(byte[] octets)
        Constructs a new instance from the on-the-wire bytes for this attribute including the prefixing attribute-type code octet and length octet.
        Parameters:
        octets - the on-the-wire bytes from which to construct this instance
      • NASIdentifierAttribute

        public NASIdentifierAttribute​(String id)
        Create an instance with the id of the NAS originating the Access-Request.
        Parameters:
        id - the id of the NAS originating the Access-Request.
    • Method Detail

      • getNasId

        public String getNasId()
        Return the id of the NAS originating the Access-Request.
        Returns:
        the id of the NAS originating the Access-Request.
      • toStringImpl

        public String toStringImpl()
        Used by super class to log the attribute's contents when packet logging is enabled.
        Overrides:
        toStringImpl in class Attribute
        Returns:
        content representation for traffic logging