Class ReplyMessageAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.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.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.radius.common.Attribute
MAX_ATTRIBUTE_LENGTH, MAX_ATTRIBUTE_VALUE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ReplyMessageAttribute(byte[] octets)Creates a ReplyMessageAttribute from the on-the-wire octets.ReplyMessageAttribute(String message)Creates a ReplyMessageAttribute to contain the given String message prior to sending in a packet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the contained message.StringtoStringImpl()Used by super class to log the attribute's contents when packet logging is enabled.
-
-
-
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:
toStringImplin classAttribute- Returns:
- content representation for traffic logging
-
-