public class AuthenticationServiceImpl extends Object implements AuthenticationService
AuthenticationService
Constructor and Description |
---|
AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService,
org.wso2.carbon.user.api.UserRealmService realmService) |
Modifier and Type | Method and Description |
---|---|
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 |
public AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService, org.wso2.carbon.user.api.UserRealmService realmService)
public boolean authenticate(String username, String password) throws AuthenticationException
AuthenticationException
If the password is equals to the shared key, returns true
Otherwise, calls the authenticate method of the UserStoreManager
authenticate
in interface AuthenticationService
username
- The name of the user to be authenticatedpassword
- The password of the user to be authenticated.true
if the authentication is successful.AuthenticationException
- for failures in the authenticationCopyright © 2020 WSO2. All rights reserved.