Class AuthorizationProvider

    • Constructor Detail

      • AuthorizationProvider

        public AuthorizationProvider​(io.vertx.ext.auth.authorization.AuthorizationProvider delegate)
      • AuthorizationProvider

        public AuthorizationProvider​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.auth.authorization.AuthorizationProvider getDelegate()
      • hashCode

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

        public String getId()
        Returns:
      • getAuthorizations

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<Void> getAuthorizations​(User user)
        Updates the user with the set of authorizations.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Parameters:
        user - user to lookup and update
        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • getAuthorizationsAndAwait

        public Void getAuthorizationsAndAwait​(User user)
        Blocking variant of getAuthorizations(io.vertx.mutiny.ext.auth.User).

        This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

        Parameters:
        user - user to lookup and update
        Returns:
        the Void instance produced by the operation.
      • newInstance

        public static AuthorizationProvider newInstance​(io.vertx.ext.auth.authorization.AuthorizationProvider arg)