|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.service.AbstractService org.talika.tarsis.security.AuthenticatorService org.talika.tarsis.security.memory.MemoryAuthenticator
public final class MemoryAuthenticator
XML/Memory implementation of Authenticator
interface.
Constructor Summary | |
---|---|
MemoryAuthenticator()
Creates a new MemoryAuthenticator . |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns name of service. |
void |
init(Context context)
Called by the framework to indicate that is being placed into service. |
SecuritySession |
login(java.lang.String username,
java.lang.String password)
Checks if given user and password are correct. |
Methods inherited from class org.talika.tarsis.service.AbstractService |
---|
destroy, getContext, getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryAuthenticator()
MemoryAuthenticator
.
Method Detail |
---|
public void init(Context context) throws ServiceException
init
in interface Service
init
in class AbstractService
context
- Context context that initialized service.
ServiceException
- if an exception has occurred that interferes with the
services's normal operationService.init(Context)
public java.lang.String getName()
getName
in interface Service
getName
in class AbstractService
Service.getName()
public SecuritySession login(java.lang.String username, java.lang.String password) throws AuthenticationFailedException
login
in interface Authenticator
login
in class AuthenticatorService
username
- String user name.password
- String user password.
AuthenticationFailedException
- if user and/or password aren't correct.Authenticator.login(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |