org.apache.qpid.server.security.auth.sasl.crammd5
Class CRAMMD5HashedInitialiser

java.lang.Object
  extended by org.apache.qpid.server.security.auth.sasl.UsernamePasswordInitialiser
      extended by org.apache.qpid.server.security.auth.sasl.crammd5.CRAMMD5HashedInitialiser
All Implemented Interfaces:
AuthenticationProviderInitialiser

public class CRAMMD5HashedInitialiser
extends UsernamePasswordInitialiser


Field Summary
 
Fields inherited from class org.apache.qpid.server.security.auth.sasl.UsernamePasswordInitialiser
_logger
 
Constructor Summary
CRAMMD5HashedInitialiser()
           
 
Method Summary
 String getMechanismName()
           
 Map<String,?> getProperties()
          Get the properties that must be passed in to the Sasl.createSaslServer method.
 Class<? extends SaslServerFactory> getServerFactoryClassForJCARegistration()
          Get the class that is the server factory.
 void initialise(PrincipalDatabase passwordFile)
          Initialise the authentication provider.
 
Methods inherited from class org.apache.qpid.server.security.auth.sasl.UsernamePasswordInitialiser
getCallbackHandler, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRAMMD5HashedInitialiser

public CRAMMD5HashedInitialiser()
Method Detail

getMechanismName

public String getMechanismName()
Returns:
the mechanism's name. This will be used in the list of mechanism's advertised to the client.

getServerFactoryClassForJCARegistration

public Class<? extends SaslServerFactory> getServerFactoryClassForJCARegistration()
Description copied from interface: AuthenticationProviderInitialiser
Get the class that is the server factory. This is used for the JCA registration.

Returns:
null if no JCA registration is required, otherwise return the class that will be used in JCA registration

initialise

public void initialise(PrincipalDatabase passwordFile)
Description copied from interface: AuthenticationProviderInitialiser
Initialise the authentication provider.

Specified by:
initialise in interface AuthenticationProviderInitialiser
Overrides:
initialise in class UsernamePasswordInitialiser
Parameters:
passwordFile - The principal database to initialise with

getProperties

public Map<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
Overrides:
getProperties in class UsernamePasswordInitialiser
Returns:
the properties, which may be null


Licensed to the Apache Software Foundation