Class AuthorizationProvider

    • Constructor Detail

      • AuthorizationProvider

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

        public AuthorizationProvider​(Object delegate)
    • Method Detail

      • hashCode

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

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

        public static AuthorizationProvider create​(String id,
                                                   Set<Authorization> authorizations)
        create an authorization provider with the specified id and authorizations
        Parameters:
        id -
        authorizations -
        Returns:
      • getId

        public String getId()
        returns the id of the authorization provider
        Returns:
      • getAuthorizations

        public void getAuthorizations​(User user,
                                      io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
        Updates the user with the set of authorizations.
        Parameters:
        user - user to lookup and update
        handler - result handler
      • getAuthorizations

        public void getAuthorizations​(User user)
        Updates the user with the set of authorizations.
        Parameters:
        user - user to lookup and update
      • rxGetAuthorizations

        public rx.Single<Void> rxGetAuthorizations​(User user)
        Updates the user with the set of authorizations.
        Parameters:
        user - user to lookup and update
        Returns:
      • newInstance

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