Class FramedAppleTalkLinkAttribute
- java.lang.Object
-
- org.forgerock.openam.radius.common.Attribute
-
- org.forgerock.openam.radius.common.packet.FramedAppleTalkLinkAttribute
-
public class FramedAppleTalkLinkAttribute 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 int
UN_NUMBERED
The 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 FramedAppleTalkLinkAttribute(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.FramedAppleTalkLinkAttribute(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 int
getNetworkNumber()
Returns the apple talk network number between 0 and 65535.boolean
isUnumberedLink()
Indicates if this is for an unnumbered serial link.String
toStringImpl()
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
-
FramedAppleTalkLinkAttribute
public FramedAppleTalkLinkAttribute(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 an unnumbered link.- Parameters:
networkNumber
- the network number that should be between 0 and 65535 inclusive.
-
FramedAppleTalkLinkAttribute
public FramedAppleTalkLinkAttribute(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.- Returns:
- the apple talk network number.
-
isUnumberedLink
public boolean isUnumberedLink()
Indicates if this is for an unnumbered serial link.- Returns:
- true if this is an unnumbered link, false if it is numbered.
-
toStringImpl
public String toStringImpl()
Used by super class to log the attribute's contents when packet logging is enabled.- Overrides:
toStringImpl
in classAttribute
- Returns:
- content representation for traffic logging
-
-