open class JWTAuthHandler : AuthHandler, Handler<RoutingContext>
An auth handler that provides JWT Authentication support. NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.JWTAuthHandler non RX-ified interface using Vert.x codegen.
JWTAuthHandler(delegate: JWTAuthHandler) |
static val __TYPE_ARG: TypeArg<JWTAuthHandler> |
open fun addAuthorities(authorities: MutableSet<String>): AuthHandler
Add a set of required authorities for this auth handler |
|
open fun addAuthority(authority: String): AuthHandler
Add a required authority for this auth handler |
|
open fun authorize(user: User, handler: Handler<AsyncResult<Void>>): Unit
Authorizes the given user against all added authorities. |
|
open static fun create(authProvider: JWTAuth): JWTAuthHandleropen static fun create(authProvider: JWTAuth, skip: String): JWTAuthHandler
Create a JWT auth handler |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): JWTAuthHandler |
|
open fun handle(arg0: RoutingContext): Unit |
|
open fun hashCode(): Int |
|
open static fun newInstance(arg: JWTAuthHandler): JWTAuthHandler |
|
open 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. |
|
open fun rxAuthorize(user: User): Single<Void>
Authorizes the given user against all added authorities. |
|
open fun rxParseCredentials(context: RoutingContext): Single<JsonObject>
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. |
|
open fun setAudience(audience: MutableList<String>): JWTAuthHandler
Set the audience list |
|
open fun setIgnoreExpiration(ignoreExpiration: Boolean): JWTAuthHandler
Set whether expiration is ignored |
|
open fun setIssuer(issuer: String): JWTAuthHandler
Set the issuer |
|
open fun toString(): String |