org.jboss.security.idm
Class IdentityManager

java.lang.Object
  extended by org.jboss.security.idm.IdentityManager
All Implemented Interfaces:
IdentityManagerService

public class IdentityManager
extends java.lang.Object
implements IdentityManagerService

IdentityManager provides an implementation of the IdentityManagerService that can be managed via a jmx-console.

Author:
Sohil Shah - sohil.shah@jboss.com

Constructor Summary
IdentityManager()
          Initializes the IdentityManager
 
Method Summary
static LoginProvider findLoginProvider()
          Finds and returns the default LoginProvider registered with the service
static LoginProvider findLoginProvider(java.lang.String id)
          Finds and returns the LoginProvider registered with the specified unique id
static ProvisioningProvider findProvisioningProvider()
          Finds and returns the default ProvisioningProvider registered with the service
static ProvisioningProvider findProvisioningProvider(java.lang.String id)
          Finds and returns the ProvisioningProvider registered with the specified unique id
 LoginProvider getLoginProvider()
          Returns the default LoginProvider registered with the service
 LoginProvider getLoginProvider(java.lang.String id)
          Returns the LoginProvider corresponding to its registration id
 ProvisioningProvider getProvisioningProvider()
          Returns the default ProvisioningProvider registered with the service
 ProvisioningProvider getProvisioningProvider(java.lang.String id)
          Returns the ProvisioningProvider corresponding to its registration id
 void setConf(java.lang.String confLocation)
          Sets the location where the configuration for this service can be looked up
 void start()
          Starts the JMX service
 void stop()
          Stops the JMX service
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityManager

public IdentityManager()
Initializes the IdentityManager

Method Detail

setConf

public void setConf(java.lang.String confLocation)
Sets the location where the configuration for this service can be looked up

Specified by:
setConf in interface IdentityManagerService
Parameters:
confLocation -

getLoginProvider

public LoginProvider getLoginProvider(java.lang.String id)
                               throws IdentityException
Returns the LoginProvider corresponding to its registration id

Specified by:
getLoginProvider in interface IdentityManagerService
Parameters:
id - a unique id to identify the LoginProvider being registered. Must start with si:
Returns:
Throws:
IdentityException

getLoginProvider

public LoginProvider getLoginProvider()
                               throws IdentityException
Returns the default LoginProvider registered with the service

Specified by:
getLoginProvider in interface IdentityManagerService
Returns:
Throws:
IdentityException

getProvisioningProvider

public ProvisioningProvider getProvisioningProvider(java.lang.String id)
                                             throws IdentityException
Returns the ProvisioningProvider corresponding to its registration id

Specified by:
getProvisioningProvider in interface IdentityManagerService
Parameters:
id - a unique id to identify the ProvisioningProvider being registered. Must start with si:
Returns:
Throws:
IdentityException

getProvisioningProvider

public ProvisioningProvider getProvisioningProvider()
                                             throws IdentityException
Returns the default ProvisioningProvider registered with the service

Specified by:
getProvisioningProvider in interface IdentityManagerService
Returns:
Throws:
IdentityException

start

public void start()
Starts the JMX service


stop

public void stop()
Stops the JMX service


findLoginProvider

public static LoginProvider findLoginProvider(java.lang.String id)
                                       throws IdentityException
Finds and returns the LoginProvider registered with the specified unique id

Parameters:
id - unique id of the LoginProvider
Returns:
the LoginProvider that matches the id
Throws:
IdentityException

findLoginProvider

public static LoginProvider findLoginProvider()
                                       throws IdentityException
Finds and returns the default LoginProvider registered with the service

Returns:
default LoginProvider
Throws:
IdentityException

findProvisioningProvider

public static ProvisioningProvider findProvisioningProvider(java.lang.String id)
                                                     throws IdentityException
Finds and returns the ProvisioningProvider registered with the specified unique id

Parameters:
id - unique id
Returns:
the ProvisioningProvider corresponding to the specified id
Throws:
IdentityException

findProvisioningProvider

public static ProvisioningProvider findProvisioningProvider()
                                                     throws IdentityException
Finds and returns the default ProvisioningProvider registered with the service

Returns:
the default ProvisioningProvider
Throws:
IdentityException