vertx / io.vertx.ext.jwt / JWT

JWT

class JWT

JWT and JWS implementation draft-ietf-oauth-json-web-token-32.

Author
Paulo Lopes

Constructors

<init>

JWT()

Functions

addJWK

fun addJWK(jwk: JWK): JWT

Adds a JSON Web Key (rfc7517) to the crypto map.

availableAlgorithms

fun availableAlgorithms(): MutableCollection<String>

decode

fun decode(token: String): JsonObject

isExpired

fun isExpired(jwt: JsonObject, options: JWTOptions): Boolean

isUnsecure

fun isUnsecure(): Boolean

sign

fun sign(payload: JsonObject, options: JWTOptions): String