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)
  • 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

      @Nonnull public List<org.opensaml.security.credential.Credential> getDataEncryptionCredentials()
      Specified by:
      getDataEncryptionCredentials in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getDataEncryptionAlgorithms

      @Nonnull public List<String> getDataEncryptionAlgorithms()
      Specified by:
      getDataEncryptionAlgorithms in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getKeyTransportEncryptionCredentials

      @Nonnull public List<org.opensaml.security.credential.Credential> getKeyTransportEncryptionCredentials()
      Specified by:
      getKeyTransportEncryptionCredentials in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getKeyTransportEncryptionAlgorithms

      @Nonnull public List<String> getKeyTransportEncryptionAlgorithms()
      Specified by:
      getKeyTransportEncryptionAlgorithms in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getDataKeyInfoGeneratorManager

      public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getDataKeyInfoGeneratorManager()
      Specified by:
      getDataKeyInfoGeneratorManager in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getKeyTransportKeyInfoGeneratorManager

      public org.opensaml.xmlsec.keyinfo.NamedKeyInfoGeneratorManager getKeyTransportKeyInfoGeneratorManager()
      Specified by:
      getKeyTransportKeyInfoGeneratorManager in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getRSAOAEPParameters

      public org.opensaml.xmlsec.encryption.support.RSAOAEPParameters getRSAOAEPParameters()
      Specified by:
      getRSAOAEPParameters in interface org.opensaml.xmlsec.EncryptionConfiguration
    • isRSAOAEPParametersMerge

      public boolean isRSAOAEPParametersMerge()
      Specified by:
      isRSAOAEPParametersMerge in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getKeyTransportAlgorithmPredicate

      public org.opensaml.xmlsec.KeyTransportAlgorithmPredicate getKeyTransportAlgorithmPredicate()
      Specified by:
      getKeyTransportAlgorithmPredicate in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getKeyAgreementConfigurations

      @Nonnull public Map<String,org.opensaml.xmlsec.encryption.support.KeyAgreementEncryptionConfiguration> getKeyAgreementConfigurations()
      Specified by:
      getKeyAgreementConfigurations in interface org.opensaml.xmlsec.EncryptionConfiguration
    • getIncludedAlgorithms

      @Nonnull public Collection<String> getIncludedAlgorithms()
      Specified by:
      getIncludedAlgorithms in interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
    • isIncludeMerge

      public boolean isIncludeMerge()
      Specified by:
      isIncludeMerge in interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
    • getExcludedAlgorithms

      @Nonnull public Collection<String> getExcludedAlgorithms()
      Specified by:
      getExcludedAlgorithms in interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
    • isExcludeMerge

      public boolean isExcludeMerge()
      Specified by:
      isExcludeMerge in interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
    • getIncludeExcludePrecedence

      @Nonnull public org.opensaml.xmlsec.AlgorithmPolicyConfiguration.Precedence getIncludeExcludePrecedence()
      Specified by:
      getIncludeExcludePrecedence in interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration