public class DiscoServiceManager extends Object implements ConfigurationListener
Modifier and Type | Method and Description |
---|---|
void |
configChanged(ConfigurationActionEvent e)
This method will be invoked when a component's
configuration data has been changed.
|
static boolean |
encryptNIinSessionContext()
Returns flag used by the IDP to decide if
NameIdentifier in
SessionContext needs to be encrypted for discovery
bootstrapping. |
static Authorizer |
getAuthorizer()
Returns the
Authorizer specified in the discovery service. |
static com.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElement |
getBootstrappingDiscoEntry()
Returns the
DiscoEntryElement of the discovery service
configured for bootstrapping. |
static ResourceIDMapper |
getDefaultResourceIDMapper()
Returns the default
ResourceIDMapper of the discovery
service. |
static DiscoEntryHandler |
getDiscoEntryHandler()
Returns the
DiscoEntryHandler specified in the discovery
service. |
static String |
getDiscoProviderID()
Returns the provider ID for Discovery Service.
|
static DiscoEntryHandler |
getGlobalEntryHandler()
Returns the glbal
DiscoEntryHandler for
business-to-enterprise (B2E) scenarios. |
static NameIdentifierMapper |
getNameIdentifierMapper()
Returns the
NameIdentifierMapper class specified in the
discovery service. |
static ResourceIDMapper |
getResourceIDMapper(String providerID)
Returns the
ResourceIDMapper associated with the providerID. |
static Set |
getSupportedAuthenticationMechanisms()
Returns the Set of
SecurityMechID s that the discovery
service supports. |
static Set |
getSupportedDirectives()
Returns the Set of
Directive s that the discovery service
supports. |
static boolean |
needPolicyEvalLookup()
Returns a boolean value which indicates whether policy evaluation is
needed for discovery lookup.
|
static boolean |
needPolicyEvalUpdate()
Returns a boolean value which indicates whether policy evaluation is
needed for discovery update.
|
static boolean |
needSessionContextStatement()
Returns flag used by the IDP to decide if
SessionContextStatement needs to be generated for discovery
bootstrapping. |
static boolean |
useImpliedResource()
Returns flag used by the IDP/AuthnSvc to decide whether to use
implied resource for discovery bootstrapping.
|
static boolean |
useResponseAuthentication()
Returns flag used by Discovery Service to decide whether Response
is always authenticated or not.
|
public void configChanged(ConfigurationActionEvent e)
configChanged
in interface ConfigurationListener
e
- Configuration action event, like ADDED, DELETED, MODIFIED etc.public static String getDiscoProviderID()
public static Set getSupportedAuthenticationMechanisms()
SecurityMechID
s that the discovery
service supports. A set of default values will be configured during
installation time.SecurityMechID
s that the discovery service
supports.public static Set getSupportedDirectives()
Directive
s that the discovery service
supports.Directive
s the discovery service supports.public static boolean needPolicyEvalLookup()
public static boolean needPolicyEvalUpdate()
public static Authorizer getAuthorizer()
Authorizer
specified in the discovery service.
If no Authorizer
is configured, an instance of
DefaultDiscoAuthorizer
will be returned.public static NameIdentifierMapper getNameIdentifierMapper()
NameIdentifierMapper
class specified in the
discovery service.NameIdentifierMapper
class.
null
if no handler is configured, or unable to
instantiate the mapper class.public static DiscoEntryHandler getDiscoEntryHandler()
DiscoEntryHandler
specified in the discovery
service.null
if no
handler is configured.public static DiscoEntryHandler getGlobalEntryHandler()
DiscoEntryHandler
for
business-to-enterprise (B2E) scenarios. This handler is invoked
when the resource id is implied.public static ResourceIDMapper getResourceIDMapper(String providerID)
ResourceIDMapper
associated with the providerID.providerID
- a provider's IDproviderID
is null, or couldn't find the
matching ResourceIDMapper
in the configuration. Caller
could call DiscoServiceManager.getDefaultResourceIDMapper()
to obtain the default ResourceIDMapper
.public static ResourceIDMapper getDefaultResourceIDMapper()
ResourceIDMapper
of the discovery
service.public static com.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElement getBootstrappingDiscoEntry()
DiscoEntryElement
of the discovery service
configured for bootstrapping. Null will be returned if it's not
configured. A default value will be configured during installation.DiscoEntryElement
public static boolean needSessionContextStatement()
SessionContextStatement
needs to be generated for discovery
bootstrapping.SessionContextStatement
needs to be
generated; false otherwise.public static boolean encryptNIinSessionContext()
NameIdentifier
in
SessionContext
needs to be encrypted for discovery
bootstrapping.NameIdentifier
in
SessionContext
needs to be encrypted; false otherwise.public static boolean useResponseAuthentication()
public static boolean useImpliedResource()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.