Class SAMLServiceManager

  • All Implemented Interfaces:
    ConfigurationListener

    public class SAMLServiceManager
    extends Object
    implements ConfigurationListener
    This is a singleton class. It stores the current values of all the AttributeSchema defined in SAML service schema. It updates its store by listening to SAML ServiceSchema events.
    • Field Detail

      • localFlag

        public static boolean localFlag
        Flag used by SAMLClient to determine if the client is local to AssertionManager or not.
    • Method Detail

      • getRemoveAssertion

        public static boolean getRemoveAssertion()
        Returns the value of flag remove assertion.
        Returns:
        true if need to remove assertion; false otherwise.
      • getServerProtocol

        public static String getServerProtocol()
        Returns server protocol.
        Returns:
        String server protocol.
      • getServerHost

        public static String getServerHost()
        Returns server host.
        Returns:
        String server host.
      • getServerPort

        public static String getServerPort()
        Returns server port in string format.
        Returns:
        String server port.
      • getServerURI

        public static String getServerURI()
        Returns server URI.
        Returns:
        server URI.
      • getServerURL

        public static String getServerURL()
        Returns server url. It is in the format of serverProtocol://serverhost:serverPort/serverURI.
        Returns:
        String server url.
      • getAttribute

        public static Object getAttribute​(String attributeName)
        Retrieves current value of an AttributeSchema in the SAML ServiceSchema.
        Parameters:
        attributeName - the name of the attributeSchema.
        Returns:
        the value of the attribute schema. It could return null if input attibuteName is null, or the attributeName can not be found in the service schema.
      • getAuthMethodURI

        public static String getAuthMethodURI​(String authModuleName)
        Returns corresponding Authentication method URI to be set in Assertion.
        Parameters:
        authModuleName - name of the authentication module used to authenticate the user.
        Returns:
        String corresponding Authentication Method URI to be set in Assertion.
      • configChanged

        public void configChanged​(ConfigurationActionEvent e)
        Updates SAML configuration when SAML service's configuration data has been changed.
        Specified by:
        configChanged in interface ConfigurationListener
        Parameters:
        e - Configuration action event, like ADDED, DELETED, MODIFIED etc.