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
  • Constructor Details

    • AuthenticationServiceImpl

      public AuthenticationServiceImpl(SharedKeyAccessService sharedKeyAccessService, org.wso2.carbon.user.api.UserRealmService realmService)
  • Method Details

    • 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 authenticated
      password - The password of the user to be authenticated.
      Returns:
      true if the authentication is successful.
      Throws:
      AuthenticationException - for failures in the authentication