Enum AttributeType
- java.lang.Object
-
- java.lang.Enum<AttributeType>
-
- org.forgerock.openam.radius.common.AttributeType
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeType>
public enum AttributeType extends Enum<AttributeType>
Attribute types corresponding to attribute type codes defined in rfc 2865 and extension RFCs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLBACK_IDThe byte value for the 'type' field of the wire protocol indicating the field is the Callback-Id field as specified in section 5.20 of RFC 2865.CALLBACK_NUMBERThe byte value for the 'type' field of the wire protocol indicating the field is the Callback-Number field as specified in section 5.19 of RFC 2865.CALLER_STATION_IDThe byte value for the 'type' field of the wire protocol indicating the field is the Called-Station-Id field as specified in section 5.30 of RFC 2865.CALLING_STATION_IDThe byte value for the 'type' field of the wire protocol indicating the field is the Calling-Station-Id field as specified in section 5.31 of RFC 2865.CHAP_CHALLENGEThe byte value for the 'type' field of the wire protocol indicating the field is the CHAP-Challenge field as specified in section 5.40 of RFC 2865.CHAP_PASSWORDThe byte value for the 'type' field of the wire protocol indicating the field is the CHAP-Password field as specified in section 5.3 of RFC 2865.FILTER_IDThe byte value for the 'type' field of the wire protocol indicating the field is the Filter-Id field as specified in section 5.11 of RFC 2865.FRAMED_APPLETALK_LINKThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Link field as specified in section 5.37 of RFC 2865.FRAMED_APPLETALK_NETWORKThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Network field as specified in section 5.38 of RFC 2865.FRAMED_APPLETALK_ZONEThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Zone field as specified in section 5.39 of RFC 2865.FRAMED_COMPRESSIONThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-Compression field as specified in section 5.13 of RFC 2865.FRAMED_IP_ADDRESSThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-IP-Address field as specified in section 5.8 of RFC 2865.FRAMED_IP_NETMASKThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-IP-Netmask field as specified in section 5.9 of RFC 2865.FRAMED_IPX_NETWORKThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-IPX-Network field as specified in section 5.23 of RFC 2865.FRAMED_MTUThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-MTU field as specified in section 5.12 of RFC 2865.FRAMED_PROTOCOLThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-Protocol field as specified in section 5.7 of RFC 2865.FRAMED_ROUTEThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-Route field as specified in section 5.22 of RFC 2865.FRAMED_ROUTINGThe byte value for the 'type' field of the wire protocol indicating the field is the Framed-Routing field as specified in section 5.10 of RFC 2865.IDLE_TIMEOUTThe byte value for the 'type' field of the wire protocol indicating the field is the Idle-Timeout field as specified in section 5.28 of RFC 2865.LOGIN_IP_HOSTThe byte value for the 'type' field of the wire protocol indicating the field is the Login-IP-Host field as specified in section 5.14 of RFC 2865.LOGIN_LAT_GROUPThe byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Group field as specified in section 5.36 of RFC 2865.LOGIN_LAT_NODEThe byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Node field as specified in section 5.35 of RFC 2865.LOGIN_LAT_PORTThe byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Port field as specified in section 5.43 of RFC 2865.LOGIN_LAT_SERVICEThe byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Service field as specified in section 5.34 of RFC 2865.LOGIN_SERVICEThe byte value for the 'type' field of the wire protocol indicating the field is the Login-Service field as specified in section 5.15 of RFC 2865.LOGIN_TCP_PORTThe byte value for the 'type' field of the wire protocol indicating the field is the Login-TCP-Port field as specified in section 5.16 of RFC 2865.MESSAGE_AUTHENTICATORThe byte value for the 'type' field of the wire protocol indicating the field is the Message-Authenticator field as specified in section 3.2 of RFC 3579 (originally introduced by RFC 2869).NAS_CLASSThe byte value for the 'type' field of the wire protocol indicating the field is the Class field as specified in section 5.25 of RFC 2865.NAS_IDENTIFIERThe byte value for the 'type' field of the wire protocol indicating the field is the NAS-Identifier field as specified in section 5.32 of RFC 2865.NAS_IP_ADDRESSThe byte value for the 'type' field of the wire protocol indicating the field is the NAS-IP-Address field as specified in section 5.4 of RFC 2865.NAS_PORTThe byte value for the 'type' field of the wire protocol indicating the field is the NAS-Port field as specified in section 5.5 of RFC 2865.NAS_PORT_TYPEThe byte value for the 'type' field of the wire protocol indicating the field is the NAS-Port-Type field as specified in section 5.41 of RFC 2865.PORT_LIMITThe byte value for the 'type' field of the wire protocol indicating the field is the Port-Limit field as specified in section 5.42 of RFC 2865.PROXY_STATEThe byte value for the 'type' field of the wire protocol indicating the field is the Proxy-State field as specified in section 5.33 of RFC 2865.REPLY_MESSAGEThe byte value for the 'type' field of the wire protocol indicating the field is the Reply-Message field as specified in section 5.18 of RFC 2865.SERVICE_TYPEThe byte value for the 'type' field of the wire protocol indicating the field is the Service-Type field as specified in section 5.6 of RFC 2865.SESSION_TIMEOUTThe byte value for the 'type' field of the wire protocol indicating the field is the Session-Timeout field as specified in section 5.27 of RFC 2865.STATEThe byte value for the 'type' field of the wire protocol indicating the field is the State field as specified in section 5.24 of RFC 2865.TERMINATION_ACTIONThe byte value for the 'type' field of the wire protocol indicating the field is the Termination-Action field as specified in section 5.29 of RFC 2865.UNKNOWNtype value not specified by RFC 2865 but included for initializing variables of this type and for handling of type codes received across the wire for unknown types.USER_NAMEThe byte value for the 'type' field of the wire protocol indicating the field is the User-Name field as specified in section 5.1 of RFC 2865.USER_PASSWORDThe byte value for the 'type' field of the wire protocol indicating the field is the User-Password field as specified in section 5.2 of RFC 2865.VENDOR_SPECIFICThe byte value for the 'type' field of the wire protocol indicating the field is the Vendor-Specific field as specified in section 5.26 of RFC 2865.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeTypegetType(int typeCode)Returns the AttributeType instance for a given field type code.intgetTypeCode()Get the attribute type code as defined in rfc 2865 or extension RFCs.static AttributeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AttributeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AttributeType UNKNOWN
type value not specified by RFC 2865 but included for initializing variables of this type and for handling of type codes received across the wire for unknown types.
-
USER_NAME
public static final AttributeType USER_NAME
The byte value for the 'type' field of the wire protocol indicating the field is the User-Name field as specified in section 5.1 of RFC 2865.
-
USER_PASSWORD
public static final AttributeType USER_PASSWORD
The byte value for the 'type' field of the wire protocol indicating the field is the User-Password field as specified in section 5.2 of RFC 2865.
-
CHAP_PASSWORD
public static final AttributeType CHAP_PASSWORD
The byte value for the 'type' field of the wire protocol indicating the field is the CHAP-Password field as specified in section 5.3 of RFC 2865.
-
NAS_IP_ADDRESS
public static final AttributeType NAS_IP_ADDRESS
The byte value for the 'type' field of the wire protocol indicating the field is the NAS-IP-Address field as specified in section 5.4 of RFC 2865.
-
NAS_PORT
public static final AttributeType NAS_PORT
The byte value for the 'type' field of the wire protocol indicating the field is the NAS-Port field as specified in section 5.5 of RFC 2865.
-
SERVICE_TYPE
public static final AttributeType SERVICE_TYPE
The byte value for the 'type' field of the wire protocol indicating the field is the Service-Type field as specified in section 5.6 of RFC 2865.
-
FRAMED_PROTOCOL
public static final AttributeType FRAMED_PROTOCOL
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-Protocol field as specified in section 5.7 of RFC 2865.
-
FRAMED_IP_ADDRESS
public static final AttributeType FRAMED_IP_ADDRESS
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-IP-Address field as specified in section 5.8 of RFC 2865.
-
FRAMED_IP_NETMASK
public static final AttributeType FRAMED_IP_NETMASK
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-IP-Netmask field as specified in section 5.9 of RFC 2865.
-
FRAMED_ROUTING
public static final AttributeType FRAMED_ROUTING
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-Routing field as specified in section 5.10 of RFC 2865.
-
FILTER_ID
public static final AttributeType FILTER_ID
The byte value for the 'type' field of the wire protocol indicating the field is the Filter-Id field as specified in section 5.11 of RFC 2865.
-
FRAMED_MTU
public static final AttributeType FRAMED_MTU
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-MTU field as specified in section 5.12 of RFC 2865.
-
FRAMED_COMPRESSION
public static final AttributeType FRAMED_COMPRESSION
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-Compression field as specified in section 5.13 of RFC 2865.
-
LOGIN_IP_HOST
public static final AttributeType LOGIN_IP_HOST
The byte value for the 'type' field of the wire protocol indicating the field is the Login-IP-Host field as specified in section 5.14 of RFC 2865.
-
LOGIN_SERVICE
public static final AttributeType LOGIN_SERVICE
The byte value for the 'type' field of the wire protocol indicating the field is the Login-Service field as specified in section 5.15 of RFC 2865.
-
LOGIN_TCP_PORT
public static final AttributeType LOGIN_TCP_PORT
The byte value for the 'type' field of the wire protocol indicating the field is the Login-TCP-Port field as specified in section 5.16 of RFC 2865.
-
REPLY_MESSAGE
public static final AttributeType REPLY_MESSAGE
The byte value for the 'type' field of the wire protocol indicating the field is the Reply-Message field as specified in section 5.18 of RFC 2865.
-
CALLBACK_NUMBER
public static final AttributeType CALLBACK_NUMBER
The byte value for the 'type' field of the wire protocol indicating the field is the Callback-Number field as specified in section 5.19 of RFC 2865.
-
CALLBACK_ID
public static final AttributeType CALLBACK_ID
The byte value for the 'type' field of the wire protocol indicating the field is the Callback-Id field as specified in section 5.20 of RFC 2865.
-
FRAMED_ROUTE
public static final AttributeType FRAMED_ROUTE
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-Route field as specified in section 5.22 of RFC 2865.
-
FRAMED_IPX_NETWORK
public static final AttributeType FRAMED_IPX_NETWORK
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-IPX-Network field as specified in section 5.23 of RFC 2865.
-
STATE
public static final AttributeType STATE
The byte value for the 'type' field of the wire protocol indicating the field is the State field as specified in section 5.24 of RFC 2865.
-
NAS_CLASS
public static final AttributeType NAS_CLASS
The byte value for the 'type' field of the wire protocol indicating the field is the Class field as specified in section 5.25 of RFC 2865.
-
VENDOR_SPECIFIC
public static final AttributeType VENDOR_SPECIFIC
The byte value for the 'type' field of the wire protocol indicating the field is the Vendor-Specific field as specified in section 5.26 of RFC 2865.
-
SESSION_TIMEOUT
public static final AttributeType SESSION_TIMEOUT
The byte value for the 'type' field of the wire protocol indicating the field is the Session-Timeout field as specified in section 5.27 of RFC 2865.
-
IDLE_TIMEOUT
public static final AttributeType IDLE_TIMEOUT
The byte value for the 'type' field of the wire protocol indicating the field is the Idle-Timeout field as specified in section 5.28 of RFC 2865.
-
TERMINATION_ACTION
public static final AttributeType TERMINATION_ACTION
The byte value for the 'type' field of the wire protocol indicating the field is the Termination-Action field as specified in section 5.29 of RFC 2865.
-
CALLER_STATION_ID
public static final AttributeType CALLER_STATION_ID
The byte value for the 'type' field of the wire protocol indicating the field is the Called-Station-Id field as specified in section 5.30 of RFC 2865.
-
CALLING_STATION_ID
public static final AttributeType CALLING_STATION_ID
The byte value for the 'type' field of the wire protocol indicating the field is the Calling-Station-Id field as specified in section 5.31 of RFC 2865.
-
NAS_IDENTIFIER
public static final AttributeType NAS_IDENTIFIER
The byte value for the 'type' field of the wire protocol indicating the field is the NAS-Identifier field as specified in section 5.32 of RFC 2865.
-
PROXY_STATE
public static final AttributeType PROXY_STATE
The byte value for the 'type' field of the wire protocol indicating the field is the Proxy-State field as specified in section 5.33 of RFC 2865.
-
LOGIN_LAT_SERVICE
public static final AttributeType LOGIN_LAT_SERVICE
The byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Service field as specified in section 5.34 of RFC 2865.
-
LOGIN_LAT_NODE
public static final AttributeType LOGIN_LAT_NODE
The byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Node field as specified in section 5.35 of RFC 2865.
-
LOGIN_LAT_GROUP
public static final AttributeType LOGIN_LAT_GROUP
The byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Group field as specified in section 5.36 of RFC 2865.
-
FRAMED_APPLETALK_LINK
public static final AttributeType FRAMED_APPLETALK_LINK
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Link field as specified in section 5.37 of RFC 2865.
-
FRAMED_APPLETALK_NETWORK
public static final AttributeType FRAMED_APPLETALK_NETWORK
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Network field as specified in section 5.38 of RFC 2865.
-
FRAMED_APPLETALK_ZONE
public static final AttributeType FRAMED_APPLETALK_ZONE
The byte value for the 'type' field of the wire protocol indicating the field is the Framed-AppleTalk-Zone field as specified in section 5.39 of RFC 2865.
-
CHAP_CHALLENGE
public static final AttributeType CHAP_CHALLENGE
The byte value for the 'type' field of the wire protocol indicating the field is the CHAP-Challenge field as specified in section 5.40 of RFC 2865.
-
NAS_PORT_TYPE
public static final AttributeType NAS_PORT_TYPE
The byte value for the 'type' field of the wire protocol indicating the field is the NAS-Port-Type field as specified in section 5.41 of RFC 2865.
-
PORT_LIMIT
public static final AttributeType PORT_LIMIT
The byte value for the 'type' field of the wire protocol indicating the field is the Port-Limit field as specified in section 5.42 of RFC 2865.
-
LOGIN_LAT_PORT
public static final AttributeType LOGIN_LAT_PORT
The byte value for the 'type' field of the wire protocol indicating the field is the Login-LAT-Port field as specified in section 5.43 of RFC 2865.
-
MESSAGE_AUTHENTICATOR
public static final AttributeType MESSAGE_AUTHENTICATOR
The byte value for the 'type' field of the wire protocol indicating the field is the Message-Authenticator field as specified in section 3.2 of RFC 3579 (originally introduced by RFC 2869).
-
-
Method Detail
-
values
public static AttributeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeType c : AttributeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public static final AttributeType getType(int typeCode)
Returns the AttributeType instance for a given field type code.- Parameters:
typeCode- the type code for this attribute type- Returns:
- returns the Attributetype instance for the given type code or null if not found or supported.
-
getTypeCode
public int getTypeCode()
Get the attribute type code as defined in rfc 2865 or extension RFCs.- Returns:
- the type code for this attribute type.
-
-