vertx / io.vertx.ext.web.handler / DigestAuthHandler

DigestAuthHandler

interface DigestAuthHandler : AuthHandler

An auth handler that provides HTTP Basic Authentication support.

Author
Paulo Lopes

Properties

DEFAULT_NONCE_EXPIRE_TIMEOUT

static val DEFAULT_NONCE_EXPIRE_TIMEOUT: Long

The default nonce expire timeout to use in milliseconds.

Functions

create

open static fun create(authProvider: HtdigestAuth): DigestAuthHandler

Create a digest auth handler

open static fun create(authProvider: HtdigestAuth, nonceExpireTimeout: Long): DigestAuthHandler

Create a digest auth handler, specifying the expire timeout for nonces.

Inherited Functions

addAuthorities

abstract fun addAuthorities(authorities: MutableSet<String>): AuthHandler

Add a set of required authorities for this auth handler

addAuthority

abstract fun addAuthority(authority: String): AuthHandler

Add a required authority for this auth handler

authorize

abstract fun authorize(user: User, handler: Handler<AsyncResult<Void>>): Unit

Authorizes the given user against all added authorities.

parseCredentials

abstract fun parseCredentials(context: RoutingContext, handler: Handler<AsyncResult<JsonObject>>): Unit

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.