org.universAAL.security.authenticator.client
Class UserPaswordAuthenticatorClient

Package class diagram package UserPaswordAuthenticatorClient
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Caller
          extended by org.universAAL.middleware.service.ServiceCaller
              extended by org.universAAL.middleware.service.DefaultServiceCaller
                  extended by 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

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
UserPaswordAuthenticatorClient(ModuleContext mc)
          Constructor
 
Method Summary
 User authenticate(String username, String password)
          This method will try to authenticate the user.
 
Methods inherited from class org.universAAL.middleware.service.DefaultServiceCaller
communicationChannelBroken, handleResponse
 
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 org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPaswordAuthenticatorClient

public UserPaswordAuthenticatorClient(ModuleContext mc)
Constructor

Method Detail

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 authenticate
password - the password to use for the authentication.
Returns:
the User instance if successful authentication, null otherwise.


Copyright © 2014 universAAL Consortium. All Rights Reserved.