createToken

open override fun createToken(header: Map<String, String>, payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token
open override fun createToken(payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token
open override fun createToken(authentication: JwtAuthentication, expire: Long, secretKey: SecretKey): Token

Implementation of JwtProvider.createToken.


fun createToken(payload: Map<String, String>, expire: Long): Token

Variant of JwtProvider.createToken using secretKey.

Return

Token as a String

Parameters

payload

Payload as a Map

expire

Token validity time(Milliseconds)


fun createToken(authentication: JwtAuthentication, expire: Long): Token

Variant of JwtProvider.createToken using secretKey.

Return

Token as a String

Parameters

authentication

Authentication as a JwtAuthentication

expire

Token validity time(Milliseconds)