JwtProvider

interface JwtProvider

Specification of basic JWT functions.

Throws

Inheritors

Functions

Link copied to clipboard
abstract fun createToken(authentication: JwtAuthentication, expire: Long, secretKey: SecretKey): Token
abstract fun createToken(payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token
abstract fun createToken(header: Map<String, String>, payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token

Method to generate token.

Link copied to clipboard

Method to get authentication. Implemented differently depending on the JwtAuthentication implementation used.

Link copied to clipboard
abstract fun getHeader(token: Token): Map<String, String>

Method to get header.

Link copied to clipboard
abstract fun getPayload(token: Token): Map<String, String>

Method to get payload.