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 theAuthenticationService
-
-
Constructor Summary
Constructors Constructor Description AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService, org.wso2.carbon.user.api.UserRealmService realmService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(String username, String password)
If the use is invalid, throws anAuthenticationException
If the password is equals to the shared key, returnstrue
Otherwise, calls the authenticate method of theUserStoreManager
-
-
-
Constructor Detail
-
AuthenticationServiceImpl
public AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService, org.wso2.carbon.user.api.UserRealmService realmService)
-
-
Method Detail
-
authenticate
public boolean authenticate(String username, String password) throws AuthenticationException
If the use is invalid, throws anAuthenticationException
If the password is equals to the shared key, returnstrue
Otherwise, calls the authenticate method of theUserStoreManager
- Specified by:
authenticate
in interfaceAuthenticationService
- 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
-
-