# Class: AuthHandler

## vertx-web-js/auth_handler~ AuthHandler

#### new AuthHandler()

  Base interface for auth handlers.

  An auth handler allows your application to provide authentication/authorisation support.

  Source:
    - auth_handler.js, line 32

### Methods

#### addAuthorities(authorities) → {AuthHandler}

  Add a set of required authorities for this auth handler

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `authorities` | Array.<string> | the set of authorities

  Source:
    - auth_handler.js, line 71

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    AuthHandler

#### addAuthority(authority) → {AuthHandler}

  Add a required authority for this auth handler

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `authority` | string | the authority

  Source:
    - auth_handler.js, line 56

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    AuthHandler

#### handle(arg0)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `arg0` | RoutingContext |

  Source:
    - auth_handler.js, line 42