Class DefaultConfigurationManager

java.lang.Object
se.idsec.signservice.integration.config.impl.DefaultConfigurationManager
All Implemented Interfaces:
ConfigurationManager

public class DefaultConfigurationManager extends Object implements ConfigurationManager
Default implementation of the ConfigurationManager interface.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

  • Method Details

    • getConfiguration

      public IntegrationServiceConfiguration getConfiguration(String policy)
      Given the name of a SignService Integration policy, the method returns the service configuration used for this policy.
      Specified by:
      getConfiguration in interface ConfigurationManager
      Parameters:
      policy - the policy name (null is interpreted as the default policy)
      Returns:
      the service configuration for the given policy, or null if no policy is found
    • getPolicies

      @Nonnull public List<String> getPolicies()
      Returns a list of names of the policies that are defined for this instance of the SignService Integration Service.
      Specified by:
      getPolicies in interface ConfigurationManager
      Returns:
      a non-empty list of policy names
    • getDefaultPolicyName

      @Nonnull public String getDefaultPolicyName()
      Gets the default policy name.
      Specified by:
      getDefaultPolicyName in interface ConfigurationManager
      Returns:
      the default policy name
    • setDefaultPolicyName

      public void setDefaultPolicyName(@Nonnull String defaultPolicyName)
      Assigns the default policy name. If not assigned, "default" will be used.
      Specified by:
      setDefaultPolicyName in interface ConfigurationManager
      Parameters:
      defaultPolicyName - the default policy name
    • afterPropertiesSet

      @PostConstruct public void afterPropertiesSet() throws Exception
      Checks that the settings for this object is valid.
      Throws:
      Exception - for initialization errors