Class EncryptionConfigurationWrapper
java.lang.Object
se.idsec.signservice.integration.security.impl.EncryptionConfigurationWrapper
- All Implemented Interfaces:
org.opensaml.xmlsec.AlgorithmPolicyConfiguration,org.opensaml.xmlsec.EncryptionConfiguration
public class EncryptionConfigurationWrapper
extends Object
implements org.opensaml.xmlsec.EncryptionConfiguration
A wrapper for OpenSAML's system configuration for encryption parameters that puts the policy default configuration
first.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
org.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedence -
Constructor Summary
ConstructorsConstructorDescriptionEncryptionConfigurationWrapper(se.idsec.signservice.integration.security.EncryptionParameters defaultEncryptionParameters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionList<org.opensaml.security.credential.Credential> org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManagerorg.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedenceorg.opensaml.xmlsec.KeyTransportAlgorithmPredicateList<org.opensaml.security.credential.Credential> org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManagerorg.opensaml.xmlsec.encryption.support.RSAOAEPParametersbooleanbooleanboolean
-
Constructor Details
-
EncryptionConfigurationWrapper
public EncryptionConfigurationWrapper(se.idsec.signservice.integration.security.EncryptionParameters defaultEncryptionParameters) Constructor.- Parameters:
defaultEncryptionParameters- the default encryption parameters for a given SignService Integration policy
-
-
Method Details
-
getDataEncryptionCredentials
- Specified by:
getDataEncryptionCredentialsin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getDataEncryptionAlgorithms
- Specified by:
getDataEncryptionAlgorithmsin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportEncryptionCredentials
@Nonnull public List<org.opensaml.security.credential.Credential> getKeyTransportEncryptionCredentials()- Specified by:
getKeyTransportEncryptionCredentialsin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportEncryptionAlgorithms
- Specified by:
getKeyTransportEncryptionAlgorithmsin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getDataKeyInfoGeneratorManager
public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()- Specified by:
getDataKeyInfoGeneratorManagerin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportKeyInfoGeneratorManager
public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()- Specified by:
getKeyTransportKeyInfoGeneratorManagerin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getRSAOAEPParameters
public org.opensaml.xmlsec.encryption.support.RSAOAEPParameters getRSAOAEPParameters()- Specified by:
getRSAOAEPParametersin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
isRSAOAEPParametersMerge
public boolean isRSAOAEPParametersMerge()- Specified by:
isRSAOAEPParametersMergein interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportAlgorithmPredicate
public org.opensaml.xmlsec.KeyTransportAlgorithmPredicate getKeyTransportAlgorithmPredicate()- Specified by:
getKeyTransportAlgorithmPredicatein interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyAgreementConfigurations
@Nonnull public Map<String,org.opensaml.xmlsec.encryption.support.KeyAgreementEncryptionConfiguration> getKeyAgreementConfigurations()- Specified by:
getKeyAgreementConfigurationsin interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getIncludedAlgorithms
- Specified by:
getIncludedAlgorithmsin interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
isIncludeMerge
public boolean isIncludeMerge()- Specified by:
isIncludeMergein interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
getExcludedAlgorithms
- Specified by:
getExcludedAlgorithmsin interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
isExcludeMerge
public boolean isExcludeMerge()- Specified by:
isExcludeMergein interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
getIncludeExcludePrecedence
@Nonnull public org.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedence getIncludeExcludePrecedence()- Specified by:
getIncludeExcludePrecedencein interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-