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.NamedKeyInfoGeneratorManager
org.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedence
org.opensaml.xmlsec.KeyTransportAlgorithmPredicate
List
<org.opensaml.security.credential.Credential> org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager
org.opensaml.xmlsec.encryption.support.RSAOAEPParameters
boolean
boolean
boolean
-
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:
getDataEncryptionCredentials
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getDataEncryptionAlgorithms
- Specified by:
getDataEncryptionAlgorithms
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportEncryptionCredentials
@Nonnull public List<org.opensaml.security.credential.Credential> getKeyTransportEncryptionCredentials()- Specified by:
getKeyTransportEncryptionCredentials
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportEncryptionAlgorithms
- Specified by:
getKeyTransportEncryptionAlgorithms
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getDataKeyInfoGeneratorManager
public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()- Specified by:
getDataKeyInfoGeneratorManager
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportKeyInfoGeneratorManager
public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()- Specified by:
getKeyTransportKeyInfoGeneratorManager
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getRSAOAEPParameters
public org.opensaml.xmlsec.encryption.support.RSAOAEPParameters getRSAOAEPParameters()- Specified by:
getRSAOAEPParameters
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
isRSAOAEPParametersMerge
public boolean isRSAOAEPParametersMerge()- Specified by:
isRSAOAEPParametersMerge
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyTransportAlgorithmPredicate
public org.opensaml.xmlsec.KeyTransportAlgorithmPredicate getKeyTransportAlgorithmPredicate()- Specified by:
getKeyTransportAlgorithmPredicate
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getKeyAgreementConfigurations
@Nonnull public Map<String,org.opensaml.xmlsec.encryption.support.KeyAgreementEncryptionConfiguration> getKeyAgreementConfigurations()- Specified by:
getKeyAgreementConfigurations
in interfaceorg.opensaml.xmlsec.EncryptionConfiguration
-
getIncludedAlgorithms
- Specified by:
getIncludedAlgorithms
in interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
isIncludeMerge
public boolean isIncludeMerge()- Specified by:
isIncludeMerge
in interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
getExcludedAlgorithms
- Specified by:
getExcludedAlgorithms
in interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
isExcludeMerge
public boolean isExcludeMerge()- Specified by:
isExcludeMerge
in interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-
getIncludeExcludePrecedence
@Nonnull public org.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedence getIncludeExcludePrecedence()- Specified by:
getIncludeExcludePrecedence
in interfaceorg.opensaml.xmlsec.AlgorithmPolicyConfiguration
-