Class UserNameAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.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.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.radius.common.Attribute
MAX_ATTRIBUTE_LENGTH, MAX_ATTRIBUTE_VALUE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description 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.UserNameAttribute(String name)Constructs an instance with the indicated name embedded.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Get the nested username value.StringtoStringImpl()Used by super class to log the attribute's contents when packet logging is enabled.
-
-
-
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:
toStringImplin classAttribute- Returns:
- content representation for traffic logging
-
-