Class AuthenticationServiceImpl

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