Class FramedAppleTalkNetworkAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.packet.FramedAppleTalkNetworkAttribute
-
public class FramedAppleTalkNetworkAttribute extends Attribute
Class representing the structure of the Framed-AppleTalk-Link attribute as specified in section 5.37 of RFC 2865.
-
-
Field Summary
Fields Modifier and Type Field Description static intUN_NUMBEREDThe special link value that indicates an unnumbered link.-
Fields inherited from class org.forgerock.openam.radius.common.Attribute
MAX_ATTRIBUTE_LENGTH, MAX_ATTRIBUTE_VALUE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description FramedAppleTalkNetworkAttribute(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.FramedAppleTalkNetworkAttribute(int networkNumber)Construct a new instance from the network number it should represent between 0 and 65535 notwithstanding use of an integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNetworkNumber()Returns the apple talk network number between 0 and 65535 to probe to allocate a node for the user.booleanisNasAssigned()Indicates if the NAS should assign a network for the user.StringtoStringImpl()Used by super class to log the attribute's contents when packet logging is enabled.
-
-
-
Field Detail
-
UN_NUMBERED
public static final int UN_NUMBERED
The special link value that indicates an unnumbered link.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FramedAppleTalkNetworkAttribute
public FramedAppleTalkNetworkAttribute(int networkNumber)
Construct a new instance from the network number it should represent between 0 and 65535 notwithstanding use of an integer. The int type is used since short types in java are signed and hence can't represent an unsigned value of 32786 or greater. A value of 0 indicates that the NAS should assign a network for the user.- Parameters:
networkNumber- the network number that should be between 0 and 65535 inclusive.
-
FramedAppleTalkNetworkAttribute
public FramedAppleTalkNetworkAttribute(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
-
-
Method Detail
-
getNetworkNumber
public int getNetworkNumber()
Returns the apple talk network number between 0 and 65535 to probe to allocate a node for the user.- Returns:
- the apple talk network number.
-
isNasAssigned
public boolean isNasAssigned()
Indicates if the NAS should assign a network for the user.- Returns:
- true if the NAS should assign a network for the user.
-
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
-
-