org.wso2.carbon.identity.authentication
Interface AuthenticationService

All Known Implementing Classes:
AuthenticationServiceImpl

public interface AuthenticationService

This OSGi service is used for authenticating a user and to be used in by other components in the same carbon environment.


Method Summary
 boolean authenticate(String username, String password)
          Authenticate the given user If the password is similar to the shared key, it assumes that the request has came from the authenticated user.
 

Method Detail

authenticate

boolean authenticate(String username,
                     String password)
                     throws AuthenticationException
Authenticate the given user If the password is similar to the shared key, it assumes that the request has came from the authenticated user. Otherwise, the user is authenticated based on provided username and password

Parameters:
username - The name of the user to be authenticated
password - The password of the user to be authenticated.
Returns:
true if the user is authenticated
Throws:
AuthenticationException - for errors if the authentication cannot be done.


Copyright © 2015 WSO2. All rights reserved.