Enum OAuthTokenField
- java.lang.Object
-
- java.lang.Enum<OAuthTokenField>
-
- org.forgerock.openam.cts.api.fields.OAuthTokenField
-
- All Implemented Interfaces:
Serializable,Comparable<OAuthTokenField>
public enum OAuthTokenField extends Enum<OAuthTokenField>
The OAuthTokenField provides a mapping between known OAuth fields and the LDAP Attributes that they map to.This class, like all other Token Field classes references the CoreTokenField fields. It goes one stage further by mapping OAuth attribute names to the corresponding CoreTokenField attributes.
This class should only list mappings for token fields that should be queryable in the CTS. Other token fields will be stored automatically in the CTS blob.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTH_GRANT_IDAUTH_TIMECLIENT_IDDEVICE_USER_CODEEXPIRY_TIMEFields used for the OAuth Bearer Token.GRANT_TYPEIDISSUEDNONCEPARENTREALMREDIRECT_URIREFRESH_TOKENSCOPESESSION_IDTOKEN_NAMETYPEUSER_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreTokenFieldgetField()static OAuthTokenFieldgetField(String value)Provides a mechanism for getting the OAuthTokenField from a given OAuth field name.StringgetOAuthField()StringtoString()static OAuthTokenFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static OAuthTokenField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPIRY_TIME
public static final OAuthTokenField EXPIRY_TIME
Fields used for the OAuth Bearer Token.
-
SCOPE
public static final OAuthTokenField SCOPE
-
PARENT
public static final OAuthTokenField PARENT
-
USER_NAME
public static final OAuthTokenField USER_NAME
-
REDIRECT_URI
public static final OAuthTokenField REDIRECT_URI
-
REFRESH_TOKEN
public static final OAuthTokenField REFRESH_TOKEN
-
ISSUED
public static final OAuthTokenField ISSUED
-
TYPE
public static final OAuthTokenField TYPE
-
REALM
public static final OAuthTokenField REALM
-
ID
public static final OAuthTokenField ID
-
CLIENT_ID
public static final OAuthTokenField CLIENT_ID
-
TOKEN_NAME
public static final OAuthTokenField TOKEN_NAME
-
NONCE
public static final OAuthTokenField NONCE
-
GRANT_TYPE
public static final OAuthTokenField GRANT_TYPE
-
SESSION_ID
public static final OAuthTokenField SESSION_ID
-
DEVICE_USER_CODE
public static final OAuthTokenField DEVICE_USER_CODE
-
AUTH_GRANT_ID
public static final OAuthTokenField AUTH_GRANT_ID
-
AUTH_TIME
public static final OAuthTokenField AUTH_TIME
-
-
Method Detail
-
values
public static OAuthTokenField[] 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 (OAuthTokenField c : OAuthTokenField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuthTokenField 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
-
getField
public CoreTokenField getField()
- Returns:
- The CoreTokenField that this OAuthTokenField is mapped to.
-
getOAuthField
public String getOAuthField()
- Returns:
- The OAuthField name.
-
getField
public static OAuthTokenField getField(String value)
Provides a mechanism for getting the OAuthTokenField from a given OAuth field name.- Parameters:
value- The value to use when matching against the OAuthTokenField.- Returns:
- Returns the OAuthTokenField for the named value.
- Throws:
IllegalArgumentException- If the string did not match any OAuthTokenField.
-
toString
public String toString()
- Overrides:
toStringin classEnum<OAuthTokenField>- Returns:
- Returns the CoreTokenField field toString value.
-
-