public class CryptoConfigReader extends java.lang.Object implements CryptoConfigSource
CryptoConfigSource
by extracting and validating values
from an underlying CryptoConfig
.Constructor and Description |
---|
CryptoConfigReader(CryptoConfig config)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
encrypt() |
java.util.Optional<java.security.Key> |
key() |
public CryptoConfigReader(CryptoConfig config)
config
- the configuration as obtained by the configuration
provider.java.lang.NullPointerException
- if the argument is null
.public boolean encrypt()
encrypt
in interface CryptoConfigSource
public java.util.Optional<java.security.Key> key()
key
in interface CryptoConfigSource
turned on
.