vertx-kuickstart-core / dev.fuelyour.vertxkuickstartcore.tools / JwtAuthHelper

JwtAuthHelper

class JwtAuthHelper : SwaggerAuthHandler

Verifies authentication according to information specified in the swagger doc.

Constructors

<init>

Verifies authentication according to information specified in the swagger doc.

JwtAuthHelper(config: JsonObject, vertx: Vertx)

Properties

EXPIRATION_MILLIS

val EXPIRATION_MILLIS: Int

Functions

authenticateUserRoles

fun authenticateUserRoles(requiredRoles: Roles, userRoles: JsonArray): Unit

createAuthHandlers

fun createAuthHandlers(roles: Roles): RouteHandlers

generateToken

fun generateToken(json: JsonObject): String

isTokenExpired

fun isTokenExpired(created: Long): Boolean