public class BasicEncryptionConfiguration extends BasicWhitelistBlacklistConfiguration implements EncryptionConfiguration
EncryptionConfiguration.WhitelistBlacklistConfiguration.Precedence| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
dataEncryptionAlgorithms
Data encryption algorithm URIs.
|
private java.util.List<Credential> |
dataEncryptionCredentials
Data encryption credentials.
|
private NamedKeyInfoGeneratorManager |
dataKeyInfoGeneratorManager
Manager for named KeyInfoGenerator instances for encrypting data.
|
private java.util.List<java.lang.String> |
keyTransportEncryptionAlgorithms
Key transport encryption algorithm URIs.
|
private java.util.List<Credential> |
keyTransportEncryptionCredentials
Key transport encryption credentials.
|
private NamedKeyInfoGeneratorManager |
keyTransportKeyInfoGeneratorManager
Manager for named KeyInfoGenerator instances for encrypting keys.
|
private KeyTransportAlgorithmPredicate |
keyTransportPredicate
Key transport algorithm predicate.
|
private org.slf4j.Logger |
log
Class logger.
|
private RSAOAEPParameters |
rsaOAEPParameters
RSA OAEP parameters.
|
private boolean |
rsaOAEPParametersMerge
Flag whether to merge RSA OAEP parameters.
|
DEFAULT_PRECEDENCE| Constructor and Description |
|---|
BasicEncryptionConfiguration()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getDataEncryptionAlgorithms()
Get the list of preferred data encryption algorithm URIs, in preference order.
|
java.util.List<Credential> |
getDataEncryptionCredentials()
Get the list of data encryption credentials to use, in preference order.
|
NamedKeyInfoGeneratorManager |
getDataKeyInfoGeneratorManager()
Get the KeyInfoGenerator manager to use when generating the EncryptedData/KeyInfo.
|
KeyTransportAlgorithmPredicate |
getKeyTransportAlgorithmPredicate()
Get the instance of
KeyTransportAlgorithmPredicate. |
java.util.List<java.lang.String> |
getKeyTransportEncryptionAlgorithms()
Get the list of preferred key transport encryption algorithm URIs, in preference order.
|
java.util.List<Credential> |
getKeyTransportEncryptionCredentials()
Get the list of key transport encryption credentials to use, in preference order.
|
NamedKeyInfoGeneratorManager |
getKeyTransportKeyInfoGeneratorManager()
Get the KeyInfoGenerator manager to use when generating the EncryptedKey/KeyInfo.
|
RSAOAEPParameters |
getRSAOAEPParameters()
Get the instance of
RSAOAEPParameters. |
boolean |
isRSAOAEPParametersMerge()
Flag indicating whether to merge this configuration's
RSAOAEPParameters values with those of
a lower order of precedence, or to treat this configuration's parameters set as authoritative. |
void |
setDataEncryptionAlgorithms(java.util.List<java.lang.String> algorithms)
Set the data encryption algorithms to use.
|
void |
setDataEncryptionCredentials(java.util.List<Credential> credentials)
Set the data encryption credentials to use.
|
void |
setDataKeyInfoGeneratorManager(NamedKeyInfoGeneratorManager keyInfoManager)
Set the manager for named KeyInfoGenerator instances encrypting data.
|
void |
setKeyTransportAlgorithmPredicate(KeyTransportAlgorithmPredicate predicate)
Set the instance of
KeyTransportAlgorithmPredicate. |
void |
setKeyTransportEncryptionAlgorithms(java.util.List<java.lang.String> algorithms)
Set the key transport encryption algorithms to use.
|
void |
setKeyTransportEncryptionCredentials(java.util.List<Credential> credentials)
Set the key transport encryption credentials to use.
|
void |
setKeyTransportKeyInfoGeneratorManager(NamedKeyInfoGeneratorManager keyInfoManager)
Set the manager for named KeyInfoGenerator instances for encrypting keys.
|
void |
setRSAOAEPParameters(RSAOAEPParameters params)
Set the instance of
RSAOAEPParameters. |
void |
setRSAOAEPParametersMerge(boolean flag)
Set the flag indicating whether to merge this configuration's
RSAOAEPParameters values with those of
a lower order of precedence, or to treat this configuration's parameters set as authoritative. |
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge, setBlacklistedAlgorithms, setBlacklistMerge, setWhitelistBlacklistPrecedence, setWhitelistedAlgorithms, setWhitelistMergeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private java.util.List<Credential> dataEncryptionCredentials
@Nonnull @NonnullElements private java.util.List<java.lang.String> dataEncryptionAlgorithms
@Nonnull @NonnullElements private java.util.List<Credential> keyTransportEncryptionCredentials
@Nonnull @NonnullElements private java.util.List<java.lang.String> keyTransportEncryptionAlgorithms
@Nullable private NamedKeyInfoGeneratorManager dataKeyInfoGeneratorManager
@Nullable private NamedKeyInfoGeneratorManager keyTransportKeyInfoGeneratorManager
@Nullable private RSAOAEPParameters rsaOAEPParameters
private boolean rsaOAEPParametersMerge
@Nullable private KeyTransportAlgorithmPredicate keyTransportPredicate
@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.List<Credential> getDataEncryptionCredentials()
getDataEncryptionCredentials in interface EncryptionConfigurationpublic void setDataEncryptionCredentials(@Nullable
java.util.List<Credential> credentials)
credentials - the list of data encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.List<java.lang.String> getDataEncryptionAlgorithms()
getDataEncryptionAlgorithms in interface EncryptionConfigurationpublic void setDataEncryptionAlgorithms(@Nullable
java.util.List<java.lang.String> algorithms)
algorithms - the list of algorithms@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.List<Credential> getKeyTransportEncryptionCredentials()
getKeyTransportEncryptionCredentials in interface EncryptionConfigurationpublic void setKeyTransportEncryptionCredentials(@Nullable
java.util.List<Credential> credentials)
credentials - the list of key transport encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.List<java.lang.String> getKeyTransportEncryptionAlgorithms()
getKeyTransportEncryptionAlgorithms in interface EncryptionConfigurationpublic void setKeyTransportEncryptionAlgorithms(@Nullable
java.util.List<java.lang.String> algorithms)
algorithms - the list of algorithms@Nullable public NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()
getDataKeyInfoGeneratorManager in interface EncryptionConfigurationpublic void setDataKeyInfoGeneratorManager(@Nullable
NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager - the KeyInfoGenerator manager to use@Nullable public NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()
getKeyTransportKeyInfoGeneratorManager in interface EncryptionConfigurationpublic void setKeyTransportKeyInfoGeneratorManager(@Nullable
NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager - the KeyInfoGenerator manager to use@Nullable public RSAOAEPParameters getRSAOAEPParameters()
RSAOAEPParameters.getRSAOAEPParameters in interface EncryptionConfigurationpublic void setRSAOAEPParameters(@Nullable
RSAOAEPParameters params)
RSAOAEPParameters.params - the new parameters instancepublic boolean isRSAOAEPParametersMerge()
RSAOAEPParameters values with those of
a lower order of precedence, or to treat this configuration's parameters set as authoritative..
Defaults to: true
isRSAOAEPParametersMerge in interface EncryptionConfigurationpublic void setRSAOAEPParametersMerge(boolean flag)
RSAOAEPParameters values with those of
a lower order of precedence, or to treat this configuration's parameters set as authoritative.
Defaults to: true
flag - true if should merge, false otherwise@Nullable public KeyTransportAlgorithmPredicate getKeyTransportAlgorithmPredicate()
KeyTransportAlgorithmPredicate.getKeyTransportAlgorithmPredicate in interface EncryptionConfigurationpublic void setKeyTransportAlgorithmPredicate(KeyTransportAlgorithmPredicate predicate)
KeyTransportAlgorithmPredicate.predicate - the new predicate instance