Package com.sun.identity.saml.common
Class SAMLServiceManager
- java.lang.Object
-
- com.sun.identity.saml.common.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SAMLServiceManager.SiteEntry
This class contains the mapping between supported target host:port(target) and its saml-aware-servlet URL & sourceid.static class
SAMLServiceManager.SOAPEntry
Contains the mapping between Source ID (SourceID) and its SOAP-Receiver-servlet URL (SOAPUrl).
-
Field Summary
Fields Modifier and Type Field Description static boolean
localFlag
Flag used by SAMLClient to determine if the client is local to AssertionManager or not.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configChanged(ConfigurationActionEvent e)
Updates SAML configuration when SAML service's configuration data has been changed.static Object
getAttribute(String attributeName)
Retrieves current value of an AttributeSchema in the SAML ServiceSchema.static String
getAuthMethodURI(String authModuleName)
Returns corresponding Authentication method URI to be set in Assertion.static boolean
getRemoveAssertion()
Returns the value of flag remove assertion.static String
getServerHost()
Returns server host.static String
getServerPort()
Returns server port in string format.static String
getServerProtocol()
Returns server protocol.static String
getServerURI()
Returns server URI.static String
getServerURL()
Returns server url.
-
-
-
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 interfaceConfigurationListener
- Parameters:
e
- Configuration action event, like ADDED, DELETED, MODIFIED etc.
-
-