public class BasicEncryptionConfiguration extends BasicWhitelistBlacklistConfiguration implements EncryptionConfiguration
EncryptionConfiguration.WhitelistBlacklistConfiguration.Precedence| Modifier and Type | Field and Description |
|---|---|
private List<String> |
dataEncryptionAlgorithms
Data encryption algorithm URIs.
|
private List<org.opensaml.security.credential.Credential> |
dataEncryptionCredentials
Data encryption credentials.
|
private NamedKeyInfoGeneratorManager |
dataKeyInfoGeneratorManager
Manager for named KeyInfoGenerator instances for encrypting data.
|
private List<String> |
keyTransportEncryptionAlgorithms
Key transport encryption algorithm URIs.
|
private List<org.opensaml.security.credential.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 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 |
|---|---|
List<String> |
getDataEncryptionAlgorithms() |
List<org.opensaml.security.credential.Credential> |
getDataEncryptionCredentials() |
NamedKeyInfoGeneratorManager |
getDataKeyInfoGeneratorManager() |
KeyTransportAlgorithmPredicate |
getKeyTransportAlgorithmPredicate() |
List<String> |
getKeyTransportEncryptionAlgorithms() |
List<org.opensaml.security.credential.Credential> |
getKeyTransportEncryptionCredentials() |
NamedKeyInfoGeneratorManager |
getKeyTransportKeyInfoGeneratorManager() |
RSAOAEPParameters |
getRSAOAEPParameters() |
boolean |
isRSAOAEPParametersMerge()
.
|
void |
setDataEncryptionAlgorithms(List<String> algorithms)
Set the data encryption algorithms to use.
|
void |
setDataEncryptionCredentials(List<org.opensaml.security.credential.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<org.opensaml.security.credential.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 @NonnullElements private List<org.opensaml.security.credential.Credential> dataEncryptionCredentials
@Nonnull @NonnullElements private List<String> dataEncryptionAlgorithms
@Nonnull @NonnullElements private List<org.opensaml.security.credential.Credential> keyTransportEncryptionCredentials
@Nonnull @NonnullElements private List<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 List<org.opensaml.security.credential.Credential> getDataEncryptionCredentials()
getDataEncryptionCredentials in interface EncryptionConfigurationpublic void setDataEncryptionCredentials(@Nullable List<org.opensaml.security.credential.Credential> credentials)
credentials - the list of data encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getDataEncryptionAlgorithms()
getDataEncryptionAlgorithms in interface EncryptionConfigurationpublic void setDataEncryptionAlgorithms(@Nullable List<String> algorithms)
algorithms - the list of algorithms@Nonnull @NonnullElements @Unmodifiable @NotLive public List<org.opensaml.security.credential.Credential> getKeyTransportEncryptionCredentials()
getKeyTransportEncryptionCredentials in interface EncryptionConfigurationpublic void setKeyTransportEncryptionCredentials(@Nullable List<org.opensaml.security.credential.Credential> credentials)
credentials - the list of key transport encryption credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getKeyTransportEncryptionAlgorithms()
getKeyTransportEncryptionAlgorithms in interface EncryptionConfigurationpublic void setKeyTransportEncryptionAlgorithms(@Nullable List<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()
getRSAOAEPParameters in interface EncryptionConfigurationpublic void setRSAOAEPParameters(@Nullable RSAOAEPParameters params)
RSAOAEPParameters.params - the new parameters instancepublic boolean isRSAOAEPParametersMerge()
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()
getKeyTransportAlgorithmPredicate in interface EncryptionConfigurationpublic void setKeyTransportAlgorithmPredicate(KeyTransportAlgorithmPredicate predicate)
KeyTransportAlgorithmPredicate.predicate - the new predicate instanceCopyright © 1999–2015. All rights reserved.