org.talika.tarsis.security
Class AuthenticatorService

java.lang.Object
  extended by org.talika.tarsis.service.AbstractService
      extended by org.talika.tarsis.security.AuthenticatorService
All Implemented Interfaces:
Authenticator, Service
Direct Known Subclasses:
MemoryAuthenticator

public abstract class AuthenticatorService
extends AbstractService
implements Authenticator

Base implementation of Authenticator interface.

Authenticator plugs in system like a service by extending AbstractService.

Version:
$Revision: 124 $
Author:
Jose M. Palomar

Constructor Summary
AuthenticatorService()
          creates a new AuthenticatorService.
 
Method Summary
abstract  SecuritySession login(java.lang.String user, java.lang.String password)
          Checks if given user and password are correct.
 
Methods inherited from class org.talika.tarsis.service.AbstractService
destroy, getContext, getLogger, getName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatorService

public AuthenticatorService()
creates a new AuthenticatorService.

Method Detail

login

public abstract SecuritySession login(java.lang.String user,
                                      java.lang.String password)
                               throws AuthenticationFailedException
Checks if given user and password are correct.

Specified by:
login in interface Authenticator
Parameters:
user - String user name.
password - String user password.
Returns:
SecuritySession security session created from given user and password.
Throws:
AuthenticationFailedException - if user and/or password aren't correct.
See Also:
Authenticator.login(String, String)


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.