Class AuthRequestType
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.AuthRequestType
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class AuthRequestType extends Object implements Serializable, Enumerated
Java class to represent the AuthRequestType enumerated type. Documentation from the relevant specification: The Auth-Request-Type AVP (AVP Code 274) is of type Enumerated and is included in application-specific auth requests to inform the peers whether a user is to be authenticated only, authorized only, or both. Note any value other than both MAY cause RADIUS interoperability issues. The following values are defined:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_AUTHENTICATE_ONLY
static int
_AUTHORIZE_AUTHENTICATE
static int
_AUTHORIZE_ONLY
static AuthRequestType
AUTHENTICATE_ONLY
The request being sent is for authentication only, and it MUST contain the relevant application-specific authentication AVPs that are needed by the Diameter server to authenticate the user.static AuthRequestType
AUTHORIZE_AUTHENTICATE
The request contains a request for both authentication and authorization.static AuthRequestType
AUTHORIZE_ONLY
The request being sent is for authorization only, and it MUST contain the application-specific authorization AVPs that are necessary to identify the service being requested/offered.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthRequestType
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_AUTHENTICATE_ONLY
public static final int _AUTHENTICATE_ONLY
- See Also:
- Constant Field Values
-
_AUTHORIZE_ONLY
public static final int _AUTHORIZE_ONLY
- See Also:
- Constant Field Values
-
_AUTHORIZE_AUTHENTICATE
public static final int _AUTHORIZE_AUTHENTICATE
- See Also:
- Constant Field Values
-
AUTHENTICATE_ONLY
public static final AuthRequestType AUTHENTICATE_ONLY
The request being sent is for authentication only, and it MUST contain the relevant application-specific authentication AVPs that are needed by the Diameter server to authenticate the user.
-
AUTHORIZE_ONLY
public static final AuthRequestType AUTHORIZE_ONLY
The request being sent is for authorization only, and it MUST contain the application-specific authorization AVPs that are necessary to identify the service being requested/offered.
-
AUTHORIZE_AUTHENTICATE
public static final AuthRequestType AUTHORIZE_AUTHENTICATE
The request contains a request for both authentication and authorization. The request MUST include both the relevant application-specific authentication information and authorization information necessary to identify the service being requested/ offered.
-
-
Method Detail
-
fromInt
public static AuthRequestType fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-