public static final class Jwks.OP extends Object
public static final
) constant for
direct type-safe reference in application code. For example:
Jwks.builder() .operations(Jwks.OP.SIGN) // ... etc ... .build();
They are also available together as a Registry
instance via the get()
method.
get()
Modifier and Type | Field and Description |
---|---|
static KeyOperation |
DECRYPT
decrypt operation indicating a key is intended to be used to decrypt content. |
static KeyOperation |
DERIVE_BITS
deriveBits operation indicating a key is intended to be used to derive bits that are not to be
used as key. |
static KeyOperation |
DERIVE_KEY
deriveKey operation indicating a key is intended to be used to derive another key. |
static KeyOperation |
ENCRYPT
encrypt operation indicating a key is intended to be used to encrypt content. |
static KeyOperation |
SIGN
sign operation indicating a key is intended to be used to compute digital signatures or
MACs. |
static KeyOperation |
UNWRAP_KEY
unwrapKey operation indicating a key is intended to be used to decrypt another key and validate
decryption, if applicable. |
static KeyOperation |
VERIFY
verify operation indicating a key is intended to be used to verify digital signatures or
MACs. |
static KeyOperation |
WRAP_KEY
wrapKey operation indicating a key is intended to be used to encrypt another key. |
Modifier and Type | Method and Description |
---|---|
static KeyOperationBuilder |
builder()
Creates a new
KeyOperationBuilder for creating custom KeyOperation instances. |
static Registry<String,KeyOperation> |
get()
Returns a registry of all standard Key Operations in the
JSON Web Key Operations Registry
defined by RFC 7517, Section 8.3. |
static KeyOperationPolicyBuilder |
policy()
Creates a new
KeyOperationPolicyBuilder for creating custom KeyOperationPolicy instances. |
public static final KeyOperation SIGN
sign
operation indicating a key is intended to be used to compute digital signatures or
MACs. It's related operation is VERIFY
.VERIFY
,
Key Operation Registry Contentspublic static final KeyOperation VERIFY
verify
operation indicating a key is intended to be used to verify digital signatures or
MACs. It's related operation is SIGN
.SIGN
,
Key Operation Registry Contentspublic static final KeyOperation ENCRYPT
encrypt
operation indicating a key is intended to be used to encrypt content. It's
related operation is DECRYPT
.DECRYPT
,
Key Operation Registry Contentspublic static final KeyOperation DECRYPT
decrypt
operation indicating a key is intended to be used to decrypt content. It's
related operation is ENCRYPT
.ENCRYPT
,
Key Operation Registry Contentspublic static final KeyOperation WRAP_KEY
wrapKey
operation indicating a key is intended to be used to encrypt another key. It's
related operation is UNWRAP_KEY
.UNWRAP_KEY
,
Key Operation Registry Contentspublic static final KeyOperation UNWRAP_KEY
unwrapKey
operation indicating a key is intended to be used to decrypt another key and validate
decryption, if applicable. It's related operation is
WRAP_KEY
.WRAP_KEY
,
Key Operation Registry Contentspublic static final KeyOperation DERIVE_KEY
deriveKey
operation indicating a key is intended to be used to derive another key. It does not have
a related operation.public static final KeyOperation DERIVE_BITS
deriveBits
operation indicating a key is intended to be used to derive bits that are not to be
used as key. It does not have a related operation.public static KeyOperationBuilder builder()
KeyOperationBuilder
for creating custom KeyOperation
instances.KeyOperationBuilder
for creating custom KeyOperation
instances.public static KeyOperationPolicyBuilder policy()
KeyOperationPolicyBuilder
for creating custom KeyOperationPolicy
instances.KeyOperationPolicyBuilder
for creating custom KeyOperationPolicy
instances.public static Registry<String,KeyOperation> get()
JSON Web Key Operations Registry
defined by RFC 7517, Section 8.3.JSON Web Key Operations Registry
.Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.