Package | Description |
---|---|
io.jsonwebtoken.security |
Modifier and Type | Field and Description |
---|---|
static KeyOperation |
Jwks.OP.DECRYPT
decrypt operation indicating a key is intended to be used to decrypt content. |
static KeyOperation |
Jwks.OP.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 |
Jwks.OP.DERIVE_KEY
deriveKey operation indicating a key is intended to be used to derive another key. |
static KeyOperation |
Jwks.OP.ENCRYPT
encrypt operation indicating a key is intended to be used to encrypt content. |
static KeyOperation |
Jwks.OP.SIGN
sign operation indicating a key is intended to be used to compute digital signatures or
MACs. |
static KeyOperation |
Jwks.OP.UNWRAP_KEY
unwrapKey operation indicating a key is intended to be used to decrypt another key and validate
decryption, if applicable. |
static KeyOperation |
Jwks.OP.VERIFY
verify operation indicating a key is intended to be used to verify digital signatures or
MACs. |
static KeyOperation |
Jwks.OP.WRAP_KEY
wrapKey operation indicating a key is intended to be used to encrypt another key. |
Modifier and Type | Method and Description |
---|---|
static Registry<String,KeyOperation> |
Jwks.OP.get()
Returns a registry of all standard Key Operations in the
JSON Web Key Operations Registry
defined by RFC 7517, Section 8.3. |
Collection<KeyOperation> |
KeyOperationPolicy.getOperations()
Returns all supported
KeyOperation s that may be assigned to a JWK. |
Set<KeyOperation> |
Jwk.getOperations()
Returns the JWK
key_ops
(Key Operations) parameter values or null if not present. |
NestedCollection<KeyOperation,T> |
JwkBuilder.operations()
Configures the key operations for which
the key is intended to be used.
|
Modifier and Type | Method and Description |
---|---|
KeyOperationPolicyBuilder |
KeyOperationPolicyBuilder.add(KeyOperation op)
Adds the specified key operation to the policy's total set of supported key operations
used to validate a key's intended usage, replacing any existing one with an identical (CaSe-SeNsItIvE)
id . |
boolean |
KeyOperation.isRelated(KeyOperation operation)
Returns
true if the specified operation is an acceptable use case for the key already assigned
this operation, false otherwise. |
Modifier and Type | Method and Description |
---|---|
KeyOperationPolicyBuilder |
KeyOperationPolicyBuilder.add(Collection<? extends KeyOperation> ops)
Adds the specified key operations to the policy's total set of supported key operations
used to validate a key's intended usage, replacing any existing ones with identical
id s. |
void |
KeyOperationPolicy.validate(Collection<? extends KeyOperation> ops)
Returns quietly if all of the specified key operations are allowed to be assigned to a JWK,
or throws an
IllegalArgumentException otherwise. |
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.