wt.auth
Interface AuthenticationHandler

All Known Implementing Classes:
FormAuthentication, HTTPAuthentication, NullAuthentication

public interface AuthenticationHandler

Authentication handler interface. This interface defines the interaction between the Authentication class and classes which handle different client authentication shemes.

Supported API: true


Field Summary
static String versionID
           
 
Method Summary
 MethodAuthenticator bootstrap(MethodAuthenticator authenticator)
          Initialization method called from bootstrapping authenticator's init method.
 MethodAuthenticator getBootstrapAuthenticator()
          Get a bootstrap MethodAuthenticator capable of identifying the user.
 MethodAuthenticator getBootstrapAuthenticator(String session_id)
          Get a bootstrap MethodAuthenticator capable of identifying the user for the given session.
 

Field Detail

versionID

public static final String versionID
See Also:
Constant Field Values
Method Detail

getBootstrapAuthenticator

public MethodAuthenticator getBootstrapAuthenticator()
Get a bootstrap MethodAuthenticator capable of identifying the user.

Supported API: true

Returns:
MethodAuthenticator object

getBootstrapAuthenticator

public MethodAuthenticator getBootstrapAuthenticator(String session_id)
Get a bootstrap MethodAuthenticator capable of identifying the user for the given session.

Supported API: true

Parameters:
session_id - a string identifying the current session
Returns:
MethodAuthenticator object

bootstrap

public MethodAuthenticator bootstrap(MethodAuthenticator authenticator)
Initialization method called from bootstrapping authenticator's init method. It can be used to convert bootstrapping authenticator into a real one or to send back another bootstrapping authenticator if the current one failed and there are other login mechanisms available. Should return null if the authenicator is not an instance used by this handler implementation.

Supported API: true

Parameters:
authenticator - the MethodAuthenticator being initialized
Returns:
replacement MethodAuthenticator or null if not our authenticator.
Throws:
AuthenticationException - if authentication failed