Class NASIdentifierAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.packet.NASIdentifierAttribute
-
public class NASIdentifierAttribute extends Attribute
Class representing the structure of the NAS-Identifier attribute as specified in section 5.32 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 NASIdentifierAttribute(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.NASIdentifierAttribute(String id)Create an instance with the id of the NAS originating the Access-Request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNasId()Return the id of the NAS originating the Access-Request.StringtoStringImpl()Used by super class to log the attribute's contents when packet logging is enabled.
-
-
-
Constructor Detail
-
NASIdentifierAttribute
public NASIdentifierAttribute(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
-
NASIdentifierAttribute
public NASIdentifierAttribute(String id)
Create an instance with the id of the NAS originating the Access-Request.- Parameters:
id- the id of the NAS originating the Access-Request.
-
-
Method Detail
-
getNasId
public String getNasId()
Return the id of the NAS originating the Access-Request.- Returns:
- the id of the NAS originating the Access-Request.
-
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
-
-