Package com.nimbusds.jose.jwk
Class KeyRevocation
java.lang.Object
com.nimbusds.jose.jwk.KeyRevocation
- All Implemented Interfaces:
Serializable
Key revocation.
- Version:
- 2024-04-27
- Author:
- Vladimir Dzhuvinov
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKeyRevocation
(Date revokedAt, KeyRevocation.Reason reason) Creates a new key revocation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the reason (reason
) parameter.Returns the revocation time (revoked_at
) parameter.int
hashCode()
static KeyRevocation
Parses a key revocation from the specified JSON object.Returns a JSON object representation of this key revocation.
-
Constructor Details
-
KeyRevocation
Creates a new key revocation.- Parameters:
revokedAt
- The revocation time.reason
- The reason.
-
-
Method Details
-
getRevocationTime
Returns the revocation time (revoked_at
) parameter.- Returns:
- The revocation time.
-
getReason
Returns the reason (reason
) parameter.- Returns:
- The reason.
-
equals
-
hashCode
-
toJSONObject
Returns a JSON object representation of this key revocation.- Returns:
- The JSON object representation.
-
parse
Parses a key revocation from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The key revocation.
- Throws:
ParseException
- If parsing failed.
-