public class BasicEncryptionConfiguration extends BasicWhitelistBlacklistConfiguration implements EncryptionConfiguration
EncryptionConfiguration
.WhitelistBlacklistConfiguration.Precedence
DEFAULT_PRECEDENCE
Constructor and Description |
---|
BasicEncryptionConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getDataEncryptionAlgorithms()
Get the list of preferred data encryption algorithm URIs, in preference order.
|
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 . |
List<String> |
getKeyTransportEncryptionAlgorithms()
Get the list of preferred key transport encryption algorithm URIs, in preference order.
|
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(List<String> algorithms)
Set the data encryption algorithms to use.
|
void |
setDataEncryptionCredentials(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(List<String> algorithms)
Set the key transport encryption algorithms to use.
|
void |
setKeyTransportEncryptionCredentials(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, setWhitelistMerge
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Credential> getDataEncryptionCredentials()
getDataEncryptionCredentials
in interface EncryptionConfiguration
public void setDataEncryptionCredentials(@Nullable List<Credential> credentials)
credentials
- the list of data encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getDataEncryptionAlgorithms()
getDataEncryptionAlgorithms
in interface EncryptionConfiguration
public void setDataEncryptionAlgorithms(@Nullable List<String> algorithms)
algorithms
- the list of algorithms@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Credential> getKeyTransportEncryptionCredentials()
getKeyTransportEncryptionCredentials
in interface EncryptionConfiguration
public void setKeyTransportEncryptionCredentials(@Nullable List<Credential> credentials)
credentials
- the list of key transport encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getKeyTransportEncryptionAlgorithms()
getKeyTransportEncryptionAlgorithms
in interface EncryptionConfiguration
public void setKeyTransportEncryptionAlgorithms(@Nullable List<String> algorithms)
algorithms
- the list of algorithms@Nullable public NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()
getDataKeyInfoGeneratorManager
in interface EncryptionConfiguration
public void setDataKeyInfoGeneratorManager(@Nullable NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager
- the KeyInfoGenerator manager to use@Nullable public NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()
getKeyTransportKeyInfoGeneratorManager
in interface EncryptionConfiguration
public void setKeyTransportKeyInfoGeneratorManager(@Nullable NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager
- the KeyInfoGenerator manager to use@Nullable public RSAOAEPParameters getRSAOAEPParameters()
RSAOAEPParameters
.getRSAOAEPParameters
in interface EncryptionConfiguration
public 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 EncryptionConfiguration
public 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 EncryptionConfiguration
public void setKeyTransportAlgorithmPredicate(KeyTransportAlgorithmPredicate predicate)
KeyTransportAlgorithmPredicate
.predicate
- the new predicate instanceCopyright © 2018. All rights reserved.