public class EncryptionManager extends Object
For details of all supported algorithms see JweAlgorithm
and for all supported encryption methods see
EncryptionMethod
Constructor and Description |
---|
EncryptionManager() |
Modifier and Type | Method and Description |
---|---|
EncryptionHandler |
getEncryptionHandler(JweHeader header)
Gets the appropriate EncryptionHandler that can perform the required encryption algorithm, as described by the
JweAlgorithm and EncryptionMethod in the given JweHeader.
|
EncryptionHandler |
getEncryptionHandler(JweHeader header,
Key key)
Gets the appropriate EncryptionHandler that can perform the required encryption algorithm, as described by the
JweAlgorithm and EncryptionMethod in the given JweHeader.
|
public EncryptionHandler getEncryptionHandler(JweHeader header)
header
- The JweHeader containing the JweAlgorithm and EncryptionMethod to get the EncryptionHandler for.public EncryptionHandler getEncryptionHandler(JweHeader header, Key key)
header
- The JweHeader containing the JweAlgorithm and EncryptionMethod to get the EncryptionHandler for.key
- The encryption key. May be null.Copyright 2010-2022 ForgeRock AS.