An auth handler that chains to a sequence of handlers.

no subtypes hierarchy

ChainAuthHandler(ChainAuthHandler unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
addAuthoritiesshared actual default AuthHandler addAuthorities(Set<String> authorities)

Add a set of required authorities for this auth handler

  • authorities

    the set of authorities

addAuthorityshared actual default AuthHandler addAuthority(String authority)

Add a required authority for this auth handler

  • authority

    the authority

appendshared default ChainAuthHandler append(AuthHandler authHandler)

Appends a auth provider to the chain.

  • authHandler

    auth handler

authorizeshared actual default void authorize(User user, Anything(Throwable?) handler)

Authorizes the given user against all added authorities.

  • user

    a user.

  • handler

    the handler for the result.

clearshared default void clear()

Clears the chain.

handleshared actual default void handle(RoutingContext arg0)
parseCredentialsshared actual default void parseCredentials(RoutingContext context, Anything(Throwable|Object) handler)

Parses the credentials from the request into a JsonObject. The implementation should be able to extract the required info for the auth provider in the format the provider expects.

  • context

    the routing context

  • handler

    the handler to be called once the information is available.

removeshared default Boolean remove(AuthHandler authHandler)

Removes a provider from the chain.

  • authHandler

    provider to remove

Inherited Methods
Methods inherited from: Object
Methods inherited from: AuthHandler