Module io.inverno.mod.security.jose
Package io.inverno.mod.security.jose.jwa
Interface DirectJWAKeyManager
- All Superinterfaces:
JWA
,JWAKeyManager
A direct Key Management algorithm that derives the Content Encryption Key which is used directly to encrypt a JWE payload.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A direct CEK composed of a derived encryption key and a map of specific parameters resulting from the key derivation and required by a recipient to derive the key. -
Method Summary
Methods inherited from interface io.inverno.mod.security.jose.jwa.JWA
getProcessedParameters
-
Method Details
-
deriveCEK
DirectJWAKeyManager.DirectCEK deriveCEK(String enc, Map<String, Object> parameters) throws JWAKeyManagerExceptionDerives a Content Encryption Key.
- Parameters:
enc
- the encryption algorithmparameters
- the JOSE header custom parameters that might be required by the algorithm to derive the CEK- Returns:
- A direct CEK
- Throws:
JWAKeyManagerException
- if there was an error deriving the CEK
-