Class ReplyMessageAttribute


  • public class ReplyMessageAttribute
    extends Attribute
    Class representing the structure of the Reply-Message attribute as specified in section 5.18 of RFC 2865 and able to be instantiated from the on-the-wire bytes. This attribute is only included in access-requests.
    • Constructor Detail

      • ReplyMessageAttribute

        public ReplyMessageAttribute​(byte[] octets)
        Creates a ReplyMessageAttribute from the on-the-wire octets.
        Parameters:
        octets - the on-the-wire bytes.
      • ReplyMessageAttribute

        public ReplyMessageAttribute​(String message)
        Creates a ReplyMessageAttribute to contain the given String message prior to sending in a packet. If the String is greater than 255 bytes then it is trimmed down to below that length.
        Parameters:
        message - the message to be embedded.
    • Method Detail

      • getMessage

        public String getMessage()
        Returns the contained message.
        Returns:
        the contained message.
      • 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