Package org.forgerock.am.cts.api.tokens
Enum Class CoreTokenField
- All Implemented Interfaces:
Serializable,Comparable<CoreTokenField>,java.lang.constant.Constable
CoreTokenField contains a mapping from the Java enumeration and the defined
attributes present in the LDAP Schema for the Core Token Service.
Note: These enumerations are backed by LDAP attributes and as such are the
only attributes available to populate for any Token that is to be stored.
Other enumerations may exist for the convenience of development, however
they must link to these enumerated values.
org.forgerock.openam.cts.api.fields.SAMLTokenField
org.forgerock.openam.cts.api.fields.OAuthTokenField-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToken blob field name.Token creation timestamp field.Generic token date five field name.Generic token date four field name.Generic token date one field name.Generic token date three field name.Generic token date two field name.Token expiry date field name.Generic token integer eight field name.Generic token integer five field name.Generic token integer four field name.Generic token integer nine field name.Generic token integer one field name.Generic token integer seven field name.Generic token integer six field name.Generic token integer ten field name.Generic token integer three field name.Generic token integer two field name.Generic token multi value String one field name.Generic token multi value String three field name.Generic token multi value String two field name.Generic token string eight field name.Generic token string eleven field name.Generic token string fifteen field name.Generic token string five field name.Generic token string four field name.Generic token string fourteen field name.Generic token string nine field name.Generic token string one field name.Generic token string seven field name.Generic token string six field name.Generic token string ten field name.Generic token string thirteen field name.Generic token string three field name.Generic token string twelve field name.Generic token string two field name.Token Id field name.Token type field name.Token expiry date field name.Token User Id field name. -
Method Summary
Modifier and TypeMethodDescriptionstatic CoreTokenFieldfromLDAPAttribute(String value) Convert the field name into a CoreTokenField enumeration.Class<?>Gets the core token field attribute type.toString()Convert the enumeration into its LDAP attribute representation.static CoreTokenFieldReturns the enum constant of this class with the specified name.static CoreTokenField[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_ID
Token User Id field name. -
TOKEN_TYPE
Token type field name. -
TOKEN_ID
Token Id field name. -
EXPIRY_DATE
Token expiry date field name. -
TTL_DATE
Token expiry date field name. -
BLOB
Token blob field name. -
CREATE_TIMESTAMP
Token creation timestamp field. -
STRING_ONE
Generic token string one field name. -
STRING_TWO
Generic token string two field name. -
STRING_THREE
Generic token string three field name. -
STRING_FOUR
Generic token string four field name. -
STRING_FIVE
Generic token string five field name. -
STRING_SIX
Generic token string six field name. -
STRING_SEVEN
Generic token string seven field name. -
STRING_EIGHT
Generic token string eight field name. -
STRING_NINE
Generic token string nine field name. -
STRING_TEN
Generic token string ten field name. -
STRING_ELEVEN
Generic token string eleven field name. -
STRING_TWELVE
Generic token string twelve field name. -
STRING_THIRTEEN
Generic token string thirteen field name. -
STRING_FOURTEEN
Generic token string fourteen field name. -
STRING_FIFTEEN
Generic token string fifteen field name. -
INTEGER_ONE
Generic token integer one field name. -
INTEGER_TWO
Generic token integer two field name. -
INTEGER_THREE
Generic token integer three field name. -
INTEGER_FOUR
Generic token integer four field name. -
INTEGER_FIVE
Generic token integer five field name. -
INTEGER_SIX
Generic token integer six field name. -
INTEGER_SEVEN
Generic token integer seven field name. -
INTEGER_EIGHT
Generic token integer eight field name. -
INTEGER_NINE
Generic token integer nine field name. -
INTEGER_TEN
Generic token integer ten field name. -
DATE_ONE
Generic token date one field name. -
DATE_TWO
Generic token date two field name. -
DATE_THREE
Generic token date three field name. -
DATE_FOUR
Generic token date four field name. -
DATE_FIVE
Generic token date five field name. -
MULTI_STRING_ONE
Generic token multi value String one field name. -
MULTI_STRING_TWO
Generic token multi value String two field name. -
MULTI_STRING_THREE
Generic token multi value String three field name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getAttributeType
Gets the core token field attribute type.- Returns:
- The attribute type.
-
fromLDAPAttribute
Convert the field name into a CoreTokenField enumeration. This is the reverse of calling toString on this enum.- Parameters:
value- The String representation of a CoreTokenField.- Returns:
- Non null CoreTokenField if the String provided matches a CoreTokenField.
- Throws:
IllegalArgumentException- If the value provided did not match a CoreTokenField.
-
toString
Convert the enumeration into its LDAP attribute representation.- Overrides:
toStringin classEnum<CoreTokenField>- Returns:
- The name of the LDAP Attribute.
-