Interface AuthenticationService

    • Method Detail

      • authenticate

        Promise<SsoToken,​AuthenticationException> authenticate​(Context context,
                                                                     String username,
                                                                     char[] password)
        Authenticates a subject (identified with the given username and password credentials), returning asynchronously an SSO token (if the authentication succeeded) or an AuthenticationException on failures (I/O, invalid credentials, ...).
        Parameters:
        context - Service context
        username - subject's username
        password - subject's credentials
        Returns:
        a promise of an SsoToken