Package org.opensaml.xmlsec.impl
Class BasicEncryptionConfiguration
- java.lang.Object
-
- org.opensaml.xmlsec.impl.BasicWhitelistBlacklistConfiguration
-
- org.opensaml.xmlsec.impl.BasicEncryptionConfiguration
-
- All Implemented Interfaces:
EncryptionConfiguration,WhitelistBlacklistConfiguration
public class BasicEncryptionConfiguration extends BasicWhitelistBlacklistConfiguration implements EncryptionConfiguration
Basic implementation ofEncryptionConfiguration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
WhitelistBlacklistConfiguration.Precedence
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>dataEncryptionAlgorithmsData encryption algorithm URIs.private List<Credential>dataEncryptionCredentialsData encryption credentials.private NamedKeyInfoGeneratorManagerdataKeyInfoGeneratorManagerManager for named KeyInfoGenerator instances for encrypting data.private List<String>keyTransportEncryptionAlgorithmsKey transport encryption algorithm URIs.private List<Credential>keyTransportEncryptionCredentialsKey transport encryption credentials.private NamedKeyInfoGeneratorManagerkeyTransportKeyInfoGeneratorManagerManager for named KeyInfoGenerator instances for encrypting keys.private KeyTransportAlgorithmPredicatekeyTransportPredicateKey transport algorithm predicate.private org.slf4j.LoggerlogClass logger.private RSAOAEPParametersrsaOAEPParametersRSA OAEP parameters.private booleanrsaOAEPParametersMergeFlag whether to merge RSA OAEP parameters.-
Fields inherited from class org.opensaml.xmlsec.impl.BasicWhitelistBlacklistConfiguration
DEFAULT_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description BasicEncryptionConfiguration()Constructor.
-
Method Summary
-
Methods inherited from class org.opensaml.xmlsec.impl.BasicWhitelistBlacklistConfiguration
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge, setBlacklistedAlgorithms, setBlacklistMerge, setWhitelistBlacklistPrecedence, setWhitelistedAlgorithms, setWhitelistMerge
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.xmlsec.WhitelistBlacklistConfiguration
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
dataEncryptionCredentials
@Nonnull @NonnullElements private List<Credential> dataEncryptionCredentials
Data encryption credentials.
-
dataEncryptionAlgorithms
@Nonnull @NonnullElements private List<String> dataEncryptionAlgorithms
Data encryption algorithm URIs.
-
keyTransportEncryptionCredentials
@Nonnull @NonnullElements private List<Credential> keyTransportEncryptionCredentials
Key transport encryption credentials.
-
keyTransportEncryptionAlgorithms
@Nonnull @NonnullElements private List<String> keyTransportEncryptionAlgorithms
Key transport encryption algorithm URIs.
-
dataKeyInfoGeneratorManager
@Nullable private NamedKeyInfoGeneratorManager dataKeyInfoGeneratorManager
Manager for named KeyInfoGenerator instances for encrypting data.
-
keyTransportKeyInfoGeneratorManager
@Nullable private NamedKeyInfoGeneratorManager keyTransportKeyInfoGeneratorManager
Manager for named KeyInfoGenerator instances for encrypting keys.
-
rsaOAEPParameters
@Nullable private RSAOAEPParameters rsaOAEPParameters
RSA OAEP parameters.
-
rsaOAEPParametersMerge
private boolean rsaOAEPParametersMerge
Flag whether to merge RSA OAEP parameters.
-
keyTransportPredicate
@Nullable private KeyTransportAlgorithmPredicate keyTransportPredicate
Key transport algorithm predicate.
-
-
Method Detail
-
getDataEncryptionCredentials
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Credential> getDataEncryptionCredentials()
- Specified by:
getDataEncryptionCredentialsin interfaceEncryptionConfiguration
-
setDataEncryptionCredentials
public void setDataEncryptionCredentials(@Nullable @NonnullElements List<Credential> credentials)
Set the data encryption credentials to use.- Parameters:
credentials- the list of data encryption credentials
-
getDataEncryptionAlgorithms
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getDataEncryptionAlgorithms()
- Specified by:
getDataEncryptionAlgorithmsin interfaceEncryptionConfiguration
-
setDataEncryptionAlgorithms
public void setDataEncryptionAlgorithms(@Nullable @NonnullElements List<String> algorithms)
Set the data encryption algorithms to use.- Parameters:
algorithms- the list of algorithms
-
getKeyTransportEncryptionCredentials
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Credential> getKeyTransportEncryptionCredentials()
- Specified by:
getKeyTransportEncryptionCredentialsin interfaceEncryptionConfiguration
-
setKeyTransportEncryptionCredentials
public void setKeyTransportEncryptionCredentials(@Nullable @NonnullElements List<Credential> credentials)
Set the key transport encryption credentials to use.- Parameters:
credentials- the list of key transport encryption credentials
-
getKeyTransportEncryptionAlgorithms
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getKeyTransportEncryptionAlgorithms()
- Specified by:
getKeyTransportEncryptionAlgorithmsin interfaceEncryptionConfiguration
-
setKeyTransportEncryptionAlgorithms
public void setKeyTransportEncryptionAlgorithms(@Nullable @NonnullElements List<String> algorithms)
Set the key transport encryption algorithms to use.- Parameters:
algorithms- the list of algorithms
-
getDataKeyInfoGeneratorManager
@Nullable public NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()
- Specified by:
getDataKeyInfoGeneratorManagerin interfaceEncryptionConfiguration
-
setDataKeyInfoGeneratorManager
public void setDataKeyInfoGeneratorManager(@Nullable NamedKeyInfoGeneratorManager keyInfoManager)Set the manager for named KeyInfoGenerator instances encrypting data.- Parameters:
keyInfoManager- the KeyInfoGenerator manager to use
-
getKeyTransportKeyInfoGeneratorManager
@Nullable public NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()
- Specified by:
getKeyTransportKeyInfoGeneratorManagerin interfaceEncryptionConfiguration
-
setKeyTransportKeyInfoGeneratorManager
public void setKeyTransportKeyInfoGeneratorManager(@Nullable NamedKeyInfoGeneratorManager keyInfoManager)Set the manager for named KeyInfoGenerator instances for encrypting keys.- Parameters:
keyInfoManager- the KeyInfoGenerator manager to use
-
getRSAOAEPParameters
@Nullable public RSAOAEPParameters getRSAOAEPParameters()
- Specified by:
getRSAOAEPParametersin interfaceEncryptionConfiguration
-
setRSAOAEPParameters
public void setRSAOAEPParameters(@Nullable RSAOAEPParameters params)Set the instance ofRSAOAEPParameters.- Parameters:
params- the new parameters instance
-
isRSAOAEPParametersMerge
public boolean isRSAOAEPParametersMerge()
.Defaults to:
true- Specified by:
isRSAOAEPParametersMergein interfaceEncryptionConfiguration
-
setRSAOAEPParametersMerge
public void setRSAOAEPParametersMerge(boolean flag)
Set the flag indicating whether to merge this configuration'sRSAOAEPParametersvalues with those of a lower order of precedence, or to treat this configuration's parameters set as authoritative.Defaults to:
true- Parameters:
flag- true if should merge, false otherwise
-
getKeyTransportAlgorithmPredicate
@Nullable public KeyTransportAlgorithmPredicate getKeyTransportAlgorithmPredicate()
- Specified by:
getKeyTransportAlgorithmPredicatein interfaceEncryptionConfiguration
-
setKeyTransportAlgorithmPredicate
public void setKeyTransportAlgorithmPredicate(KeyTransportAlgorithmPredicate predicate)
Set the instance ofKeyTransportAlgorithmPredicate.- Parameters:
predicate- the new predicate instance
-
-