Enum OIDCJWKSDataBinder.JsonWebKeyLifecycleState
- java.lang.Object
-
- java.lang.Enum<OIDCJWKSDataBinder.JsonWebKeyLifecycleState>
-
- org.apache.syncope.core.provisioning.api.data.OIDCJWKSDataBinder.JsonWebKeyLifecycleState
-
- All Implemented Interfaces:
Serializable,Comparable<OIDCJWKSDataBinder.JsonWebKeyLifecycleState>
- Enclosing interface:
- OIDCJWKSDataBinder
public static enum OIDCJWKSDataBinder.JsonWebKeyLifecycleState extends Enum<OIDCJWKSDataBinder.JsonWebKeyLifecycleState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENTThe key state is active and current and is used for crypto operations as necessary.FUTUREThe key state is one for the future and will take the place of the current key per the rotation schedule.PREVIOUSPrevious key prior to the current key.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetState()static OIDCJWKSDataBinder.JsonWebKeyLifecycleStatevalueOf(String name)Returns the enum constant of this type with the specified name.static OIDCJWKSDataBinder.JsonWebKeyLifecycleState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT
public static final OIDCJWKSDataBinder.JsonWebKeyLifecycleState CURRENT
The key state is active and current and is used for crypto operations as necessary. Per the rotation schedule, the key with this status would be replaced and rotated by the future key.
-
FUTURE
public static final OIDCJWKSDataBinder.JsonWebKeyLifecycleState FUTURE
The key state is one for the future and will take the place of the current key per the rotation schedule.
-
PREVIOUS
public static final OIDCJWKSDataBinder.JsonWebKeyLifecycleState PREVIOUS
Previous key prior to the current key. This key continues to remain valid and available, and is a candidate to be removed from the keystore per the revocation schedule.
-
-
Method Detail
-
values
public static OIDCJWKSDataBinder.JsonWebKeyLifecycleState[] 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 (OIDCJWKSDataBinder.JsonWebKeyLifecycleState c : OIDCJWKSDataBinder.JsonWebKeyLifecycleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OIDCJWKSDataBinder.JsonWebKeyLifecycleState 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
-
getState
public long getState()
-
-