Class AbstractSettings

java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AssertionSettings, CredentialSettings, EndpointSettings, IdentityProviderSettings, MetadataProviderSettings, MetadataProviderSettings.HttpProxySettings, MetadataSettings, MetadataSettings.ContactPersonSettings, MetadataSettings.EncryptionMethodSettings, MetadataSettings.OrganizationSettings, MetadataSettings.SigningMethodSettings, MetadataSettings.UIInfoSettings, MetadataSettings.UIInfoSettings.LogoSettings

public abstract class AbstractSettings extends Object implements Serializable
Base implementation for configuration settings.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • AbstractSettings

      protected AbstractSettings(Map<String,Object> settings)
      Constructor.
      Parameters:
      settings - the settings
  • Method Details

    • getSetting

      public <T> T getSetting(String name)
      Gets a named configuration setting.
      Type Parameters:
      T - the type of the setting
      Parameters:
      name - the name of the setting
      Returns:
      the setting value, or null if not available
    • getSettings

      public Map<String,Object> getSettings()
      Returns a Map of the configuration settings.
      Returns:
      a map
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object