Class AuthenticationServiceImpl
java.lang.Object
org.wso2.carbon.identity.authentication.AuthenticationServiceImpl
- All Implemented Interfaces:
AuthenticationService
The default implementation of the
AuthenticationService-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService, org.wso2.carbon.user.api.UserRealmService realmService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String username, String password) If the use is invalid, throws anAuthenticationExceptionIf the password is equals to the shared key, returnstrueOtherwise, calls the authenticate method of theUserStoreManager
-
Constructor Details
-
Method Details
-
authenticate
If the use is invalid, throws anAuthenticationExceptionIf the password is equals to the shared key, returnstrueOtherwise, calls the authenticate method of theUserStoreManager- Specified by:
authenticatein interfaceAuthenticationService- Parameters:
username- The name of the user to be authenticatedpassword- The password of the user to be authenticated.- Returns:
trueif the authentication is successful.- Throws:
AuthenticationException- for failures in the authentication
-