org.wso2.carbon.identity.authentication
Class AuthenticationServiceImpl
java.lang.Object
org.wso2.carbon.identity.authentication.AuthenticationServiceImpl
- All Implemented Interfaces:
- AuthenticationService
public class AuthenticationServiceImpl
- extends Object
- implements AuthenticationService
The default implementation of the AuthenticationService
|
Method Summary |
boolean |
authenticate(String username,
String password)
If the use is invalid, throws an AuthenticationException
If the password is equals to the shared key, returns true
Otherwise, calls the authenticate method of the UserStoreManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationServiceImpl
public AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService,
org.wso2.carbon.user.api.UserRealmService realmService)
authenticate
public boolean authenticate(String username,
String password)
throws AuthenticationException
- If the use is invalid, throws an
AuthenticationException
If the password is equals to the shared key, returns true
Otherwise, calls the authenticate method of the UserStoreManager
- Specified by:
authenticate in interface AuthenticationService
- Parameters:
username - The name of the user to be authenticatedpassword - The password of the user to be authenticated.
- Returns:
true if the authentication is successful.
- Throws:
AuthenticationException - for failures in the authentication
Copyright © 2015 WSO2. All rights reserved.