Class StateAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.StateAttribute
-
public class StateAttribute extends Attribute
Class representing the structure of the State attribute as specified in section 5.24 of RFC 2865 and able to be instantiated from the on-the-wire bytes.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.radius.common.Attribute
MAX_ATTRIBUTE_LENGTH, MAX_ATTRIBUTE_VALUE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description StateAttribute(byte[] octets)Creates a ReplyMessageAttribute from the on-the-wire octets.StateAttribute(String str)Creates an instance to contain the given string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetState()Returns the contained state string.StringtoStringImpl()Used by super class to log the attribute's contents when packet logging is enabled.
-
-
-
Constructor Detail
-
StateAttribute
public StateAttribute(String str)
Creates an instance to contain the given string.- Parameters:
str- the opaque state string.
-
StateAttribute
public StateAttribute(byte[] octets)
Creates a ReplyMessageAttribute from the on-the-wire octets.- Parameters:
octets- the on-the-wire bytes.
-
-
Method Detail
-
getState
public String getState()
Returns the contained state string.- Returns:
- the contained state string.
-
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
-
-