Class UserNameAttribute


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

      • UserNameAttribute

        public UserNameAttribute​(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
      • UserNameAttribute

        public UserNameAttribute​(String name)
        Constructs an instance with the indicated name embedded.
        Parameters:
        name - the username.
    • Method Detail

      • getName

        public String getName()
        Get the nested username value.
        Returns:
        the username.
      • 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