create Token
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.
Variant of JwtProvider.createToken using secretKey.
Return
Token as a String
Parameters
payload
Payload as a Map
expire
Token validity time(Milliseconds)
Variant of JwtProvider.createToken using secretKey.
Return
Token as a String
Parameters
authentication
Authentication as a JwtAuthentication
expire
Token validity time(Milliseconds)