Class AuthenticationProvider

    • Constructor Detail

      • AuthenticationProvider

        public AuthenticationProvider​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • authenticate

        @Deprecated
        public void authenticate​(JsonObject credentials,
                                 Handler<AsyncResult<User>> resultHandler)
        Deprecated.
        Authenticate a user.

        The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:

           {
             "username": "tim",
             "password": "mypassword"
           }
         
        For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.

        If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
        resultHandler - The result handler
      • authenticate

        @Deprecated
        public void authenticate​(JsonObject credentials)
        Deprecated.
        Authenticate a user.

        The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:

           {
             "username": "tim",
             "password": "mypassword"
           }
         
        For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.

        If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
      • rxAuthenticate

        @Deprecated
        public io.reactivex.Single<User> rxAuthenticate​(JsonObject credentials)
        Deprecated.
        Authenticate a user.

        The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:

           {
             "username": "tim",
             "password": "mypassword"
           }
         
        For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.

        If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
        Returns:
      • authenticate

        public void authenticate​(Credentials credentials,
                                 Handler<AsyncResult<User>> resultHandler)
        Authenticate a user.

        The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
        resultHandler - The result handler
      • authenticate

        public void authenticate​(Credentials credentials)
        Authenticate a user.

        The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
      • rxAuthenticate

        public io.reactivex.Single<User> rxAuthenticate​(Credentials credentials)
        Authenticate a user.

        The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.

        Parameters:
        credentials - The credentials
        Returns: