fun verifier(verifier: JWTVerifier): Unit
fun verifier(verifier: (HttpAuthHeader) -> JWTVerifier?): Unit
verifier
- verifies token format and signature
fun verifier(jwkProvider: JwkProvider, issuer: String, configure: JWTConfigureFunction = {}): Unit
jwkProvider
- provides the JSON Web Key
issuer
- the issuer of the JSON Web Token
fun verifier(jwkProvider: JwkProvider, configure: JWTConfigureFunction = {}): Unit
jwkProvider
- provides the JSON Web Key
configure
- function will be applied during JWTVerifier construction
fun verifier(issuer: String, audience: String, algorithm: Algorithm, block: Verification.() -> Unit = {}): Unit
Configure verifier using JWTVerifier.
issuer
- of the JSON Web Token
algorithm
- for validations of token signatures
fun verifier(issuer: String, block: JWTConfigureFunction = {}): Unit
Configure verifier using JwkProvider.
issuer
- the issuer of JSON Web Token
block
- configuration of JwkProvider