Enum SessionTokenField
- java.lang.Object
-
- java.lang.Enum<SessionTokenField>
-
- org.forgerock.openam.cts.api.fields.SessionTokenField
-
- All Implemented Interfaces:
Serializable,Comparable<SessionTokenField>
public enum SessionTokenField extends Enum<SessionTokenField>
Responsible for describing specific fields of interest in Session Tokens.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LATEST_ACCESS_TIMEMAX_IDLE_EXPIRATION_TIMEMAX_SESSION_EXPIRATION_TIMEREALMRESTRICTED_TOKENSSESSION_HANDLESESSION_IDSESSION_STATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreTokenFieldgetField()The CoreTokenField that this Session Field is mapped to.StringgetInternalSessionFieldName()The InternalSession class field name.static SessionTokenFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static SessionTokenField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LATEST_ACCESS_TIME
public static final SessionTokenField LATEST_ACCESS_TIME
-
SESSION_ID
public static final SessionTokenField SESSION_ID
-
SESSION_HANDLE
public static final SessionTokenField SESSION_HANDLE
-
REALM
public static final SessionTokenField REALM
-
SESSION_STATE
public static final SessionTokenField SESSION_STATE
-
MAX_SESSION_EXPIRATION_TIME
public static final SessionTokenField MAX_SESSION_EXPIRATION_TIME
-
MAX_IDLE_EXPIRATION_TIME
public static final SessionTokenField MAX_IDLE_EXPIRATION_TIME
-
RESTRICTED_TOKENS
public static final SessionTokenField RESTRICTED_TOKENS
-
-
Method Detail
-
values
public static SessionTokenField[] 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 (SessionTokenField c : SessionTokenField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SessionTokenField 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()
The CoreTokenField that this Session Field is mapped to.- Returns:
- Non null CoreTokenField.
-
getInternalSessionFieldName
public String getInternalSessionFieldName()
The InternalSession class field name.- Returns:
- Non null, used for InternalSession mapping purposes.
-
-