public class AMAuthenticationManager extends Object
Constructor and Description |
---|
AMAuthenticationManager(SSOToken token,
String org)
Constructs an instance of
AMAuthenticationManager for the specified realm to manage the
authentication module instances available to this realm. |
Modifier and Type | Method and Description |
---|---|
AMAuthenticationInstance |
createAuthenticationInstance(String name,
String type,
Map attributes)
Creates an
AMAuthenticationInstance instance with the
specified parameters. |
void |
deleteAuthenticationInstance(String name)
Deletes a specified authentication module instance.
|
Set<String> |
getAllowedModuleNames()
Returns a Set of module instance names that is allowed for this
organization.
|
AMAuthenticationInstance |
getAuthenticationInstance(String authName)
Returns the
AMAuthenticationInstance object whose name is
as specified. |
Set<AMAuthenticationInstance> |
getAuthenticationInstances()
Returns the authentication module instances that are available to this
realm except the Application instance which is for internal use only.
|
AMAuthenticationSchema |
getAuthenticationSchema(String authType)
Returns an
AMAuthenticationSchema object for the specified
authentication type. |
static String |
getAuthenticationServiceName(String moduleName)
Returns authentication service name of a module.
|
static Set<String> |
getAuthenticationServiceNames()
Returns a Set contains all the module service names that are plugged in
this server.
|
static Set<String> |
getAuthenticationTypes()
Returns a Set contains all the authentication types that are plugged in
this server.
|
String |
getAuthInstanceType(String authName)
Returns the type of the authentication module instance with the
specified instance name.
|
Set<String> |
getModuleInstanceNames(String aModuleType)
Returns a Set of all registered module instance names for a module type,
including both the old instances from 6.3 DIT and the new instances
in 7.0.
|
boolean |
isEditable(AMAuthenticationInstance instance)
Returns
true if this authentication module instance editable
by this user and/or in this realm. |
static void |
reInitializeAuthServices()
Re-initializes the module services.
|
static void |
updateModuleInstanceTable(String realm,
String serviceName)
Updates the module instance table for the authentication service if the module instance table was already
cached for the provided realm.
|
public AMAuthenticationManager(SSOToken token, String org) throws AMConfigurationException
AMAuthenticationManager
for the specified realm to manage the
authentication module instances available to this realm.token
- Single sign on token of the user identity on whose behalf the operations are performed.org
- The realm in which the module instance management is performed.AMConfigurationException
- if Service Management related error occurs.public static void reInitializeAuthServices()
public static Set<String> getAuthenticationTypes()
public static Set<String> getAuthenticationServiceNames()
public static String getAuthenticationServiceName(String moduleName)
moduleName
- Name of authentication module.public static void updateModuleInstanceTable(String realm, String serviceName)
realm
- The realm where the configuration has changed.serviceName
- The authentication module's service name.public AMAuthenticationSchema getAuthenticationSchema(String authType) throws AMConfigurationException
AMAuthenticationSchema
object for the specified
authentication type.authType
- Type of the authentication module instance.AMAuthenticationSchema
object of the specified
authentication type.AMConfigurationException
- if error occurred during retrieving
the service schema.public AMAuthenticationInstance getAuthenticationInstance(String authName)
AMAuthenticationInstance
object whose name is
as specified.
Name uniqueness is required for the instances among the same realm, as
well as the instances that are available to this realm.authName
- Authentication instance name.AMAuthenticationInstance
object that is
associated with the authentication instance name.public String getAuthInstanceType(String authName)
public Set<String> getModuleInstanceNames(String aModuleType)
public Set<String> getAllowedModuleNames()
public Set<AMAuthenticationInstance> getAuthenticationInstances()
AMAuthenticationInstance
objects that are
available to this realm.public AMAuthenticationInstance createAuthenticationInstance(String name, String type, Map attributes) throws AMConfigurationException
AMAuthenticationInstance
instance with the
specified parameters.name
- Name of the authentication module instance.type
- Type of the authentication module instance.attributes
- A Map of parameters for this module instance.AMAuthenticationInstance
object is newly created.AMConfigurationException
- if error occurred during the
authentication creation.public void deleteAuthenticationInstance(String name) throws AMConfigurationException
name
- Name of the authentication module instance going to be
deleted.AMConfigurationException
- if it fails to delete the
authentication instance.public boolean isEditable(AMAuthenticationInstance instance)
true
if this authentication module instance editable
by this user and/or in this realm.instance
- The authentication module instance.true
if editable.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.