com.ge.research.app.security
Class AuthenticationFactory

java.lang.Object
  extended bycom.ge.research.app.security.AuthenticationFactory

public class AuthenticationFactory
extends java.lang.Object

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:46 $
Author:
garbiras
Created on:
June 5, 2006

Field Summary
 java.lang.String DEFAULT_AUTHENTICATOR
           
protected  java.util.logging.Logger logger
           
protected  java.lang.String NOCONFIGURATION
           
 
Constructor Summary
AuthenticationFactory()
           
AuthenticationFactory(java.lang.String resourceBundle)
           
 
Method Summary
 Authenticator getAuthenticator()
          Returns a specific authenticator to use.
 Authenticator getAuthenticator(java.lang.String type)
           
 Authenticator getDefaultAuthenticator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_AUTHENTICATOR

public final java.lang.String DEFAULT_AUTHENTICATOR
See Also:
Constant Field Values

NOCONFIGURATION

protected final java.lang.String NOCONFIGURATION

logger

protected final java.util.logging.Logger logger
Constructor Detail

AuthenticationFactory

public AuthenticationFactory()

AuthenticationFactory

public AuthenticationFactory(java.lang.String resourceBundle)
Method Detail

getAuthenticator

public Authenticator getAuthenticator()
                               throws SecurityException
Returns a specific authenticator to use. This method is intended to be overwritten by subclasses.

Returns:
The default authenticator
Throws:
SecurityException
See Also:
getDefaultAuthenticator()

getAuthenticator

public Authenticator getAuthenticator(java.lang.String type)
                               throws SecurityException
Parameters:
type - the configuration identifier of the authenticator to return
Returns:
The configured authenticator identified by type; Returns null if there is no configuration for the specified type
Throws:
SecurityException

getDefaultAuthenticator

public Authenticator getDefaultAuthenticator()
                                      throws SecurityException
Returns:
The configured default authenticator. If none is configured, it returns a new AcceptAllAuthenticator
Throws:
SecurityException