public interface KeyOperationPolicy
KeyOperation
s may be assigned to a JWK.KeyOperationPolicied.operationPolicy(KeyOperationPolicy)
Modifier and Type | Method and Description |
---|---|
Collection<KeyOperation> |
getOperations()
Returns all supported
KeyOperation s that may be assigned to a JWK. |
void |
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. |
Collection<KeyOperation> getOperations()
KeyOperation
s that may be assigned to a JWK.KeyOperation
s that may be assigned to a JWK.void validate(Collection<? extends KeyOperation> ops) throws IllegalArgumentException
IllegalArgumentException
otherwise.ops
- the operations to validateIllegalArgumentException
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.