org.apache.qpid.server.security.auth
Class UsernamePasswordInitialiser

java.lang.Object
  extended by org.apache.qpid.server.security.auth.UsernamePasswordInitialiser
All Implemented Interfaces:
AuthenticationProviderInitialiser
Direct Known Subclasses:
AmqPlainInitialiser, CRAMMD5Initialiser, PlainInitialiser

public abstract class UsernamePasswordInitialiser
extends java.lang.Object
implements AuthenticationProviderInitialiser


Constructor Summary
UsernamePasswordInitialiser()
           
 
Method Summary
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
           
 java.util.Map<java.lang.String,?> getProperties()
          Get the properties that must be passed in to the Sasl.createSaslServer method.
 void initialise(java.lang.String baseConfigPath, org.apache.commons.configuration.Configuration configuration, java.util.Map<java.lang.String,PrincipalDatabase> principalDatabases)
          Initialise the authentication provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.server.security.auth.AuthenticationProviderInitialiser
getMechanismName, getServerFactoryClassForJCARegistration
 

Constructor Detail

UsernamePasswordInitialiser

public UsernamePasswordInitialiser()
Method Detail

initialise

public void initialise(java.lang.String baseConfigPath,
                       org.apache.commons.configuration.Configuration configuration,
                       java.util.Map<java.lang.String,PrincipalDatabase> principalDatabases)
                throws java.lang.Exception
Description copied from interface: AuthenticationProviderInitialiser
Initialise the authentication provider.

Specified by:
initialise in interface AuthenticationProviderInitialiser
Parameters:
baseConfigPath - the path in the config file that points to any config options for this provider. Each provider can have its own set of configuration options
configuration - the Apache Commons Configuration instance used to configure this provider
principalDatabases - the set of principal databases that are available
Throws:
java.lang.Exception

getCallbackHandler

public javax.security.auth.callback.CallbackHandler getCallbackHandler()
Specified by:
getCallbackHandler in interface AuthenticationProviderInitialiser
Returns:
the callback handler that should be used to process authentication requests for this mechanism. This will be called after initialise and will be stored by the authentication manager. The callback handler must be fully threadsafe.

getProperties

public java.util.Map<java.lang.String,?> getProperties()
Description copied from interface: AuthenticationProviderInitialiser
Get the properties that must be passed in to the Sasl.createSaslServer method.

Specified by:
getProperties in interface AuthenticationProviderInitialiser
Returns:
the properties, which may be null