Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthorizationHandler

Base interface for authorization handlers that provide authorization support.

AuthorizationHandlerImpl usually requires a AuthenticationHandler to be on the routing chain before it or a custom handler that has previously set a {@link User} in the RoutingContext

Hierarchy

  • AuthorizationHandler

Implements

  • any

Index

Methods

addAuthorizationProvider

  • Adds a provider that shall be used to retrieve the required authorizations for the user to attest. Multiple calls are allowed to retrieve authorizations from many sources.

    Parameters

    • authorizationProvider: AuthorizationProvider

    Returns AuthorizationHandler

handle

  • Parameters

    Returns void

Static create

  • create the the handler that will check the specified authorization Note that to check several authorizations, you can specify a sub-interface such as {@link AndAuthorization} or {@link OrAuthorization}

    Parameters

    • authorization: Authorization

    Returns AuthorizationHandler

Generated using TypeDoc