org.apache.cocoon.webapps.authentication.components
Interface Authenticator

All Known Implementing Classes:
PipelineAuthenticator, ServletAuthenticator

Deprecated. This block is deprecated and will be removed in future versions.

public interface Authenticator

Verify if a user can be authenticated. An authenticator can implement all the usual component lifecycle interfaces and gets the information set. An authenticator must be implemented in a thread safe manner!

Version:
CVS $Id: Authenticator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Nested Class Summary
static class Authenticator.AuthenticationResult
          Deprecated. This object describes the success or the failure of an attempt to authenticate a user.
 
Method Summary
 Authenticator.AuthenticationResult authenticate(HandlerConfiguration configuration, SourceParameters parameters)
          Deprecated. Try to authenticate the user.
 void logout(UserHandler handler)
          Deprecated. This notifies the authenticator that a user logs out of the given handler.
 

Method Detail

authenticate

Authenticator.AuthenticationResult authenticate(HandlerConfiguration configuration,
                                                SourceParameters parameters)
                                                throws ProcessingException
Deprecated. 
Try to authenticate the user.

Returns:
An AuthenticationResult that is either valid (authentication successful) or invalid (authentication failed.
Throws:
ProcessingException - Only if an error occurs

logout

void logout(UserHandler handler)
Deprecated. 
This notifies the authenticator that a user logs out of the given handler. After the authenticator is notified, the AuthenticationManager removes the authentication context, eventually the session etc.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.