Class KeycloakAuthorization

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate, AuthorizationProvider

    public class KeycloakAuthorization
    extends Object
    implements io.vertx.lang.rx.RxDelegate, AuthorizationProvider
    Implementation of the Keycloak Authorization Provider.

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • KeycloakAuthorization

        public KeycloakAuthorization​(Object delegate)
    • Method Detail

      • hashCode

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

        public Future<Void> getAuthorizations​(User user)
        Updates the user with the set of authorizations.
        Specified by:
        getAuthorizations in interface AuthorizationProvider
        Parameters:
        user - user to lookup and update.
        Returns:
        Future void to signal end of asynchronous call.
      • rxGetAuthorizations

        public Completable rxGetAuthorizations​(User user)
        Updates the user with the set of authorizations.
        Specified by:
        rxGetAuthorizations in interface AuthorizationProvider
        Parameters:
        user - user to lookup and update.
        Returns:
        Future void to signal end of asynchronous call.
      • create

        public static KeycloakAuthorization create()
        Factory method to create an Authorization Provider for tokens adhering to the Keycloak token format. When the user is known to not be a JWT, (e.g.: a OAuth2 response token) then the root claim is expected to be the extracted from the user under the key: accessToken.
        Returns:
        a AuthorizationProvider