org.universAAL.security.authenticator.client
Class UserPaswordAuthenticatorClient
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Caller
org.universAAL.middleware.service.ServiceCaller
org.universAAL.middleware.service.DefaultServiceCaller
org.universAAL.security.authenticator.client.UserPaswordAuthenticatorClient
public class UserPaswordAuthenticatorClient
- extends DefaultServiceCaller
This class is a helper for all those components that need to authenticate a user by means of
user password authentication.
- Author:
- amedrano
Methods inherited from class org.universAAL.middleware.service.ServiceCaller |
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, removeAvailabilitySubscription, sendRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserPaswordAuthenticatorClient
public UserPaswordAuthenticatorClient(ModuleContext mc)
- Constructor
authenticate
public User authenticate(String username,
String password)
- This method will try to authenticate the user. If successful the user instance will be returned
else it will be null.
- Parameters:
username
- the username to authenticatepassword
- the password to use for the authentication.
- Returns:
- the
User
instance if successful authentication, null otherwise.
Copyright © 2014 universAAL Consortium. All Rights Reserved.