Package com.nimbusds.jose.jwk
Class KeyRevocation.Reason
java.lang.Object
com.nimbusds.jose.jwk.KeyRevocation.Reason
- Enclosing class:
- KeyRevocation
Key revocation reason.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyRevocation.Reason
The private key is believed to have been compromised.static final KeyRevocation.Reason
The key is no longer active.static final KeyRevocation.Reason
General or unspecified reason for the key status change. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNSPECIFIED
General or unspecified reason for the key status change. -
COMPROMISED
The private key is believed to have been compromised. -
SUPERSEDED
The key is no longer active.
-
-
Constructor Details
-
Reason
Creates a new reason with the specified value.- Parameters:
value
- The reason value. Must not benull
-
-
Method Details
-
getValue
Returns the reason value.- Returns:
- The reason value.
-
toString
-
equals
-
hashCode
-
parse
Parses a reason from the specified string.- Parameters:
s
- The string. Must not benull
.- Returns:
- The reason.
-