Default Jwt Provider
class DefaultJwtProvider(secretKey: SecretKey, accessTokenExpire: Long, refreshTokenExpire: Long) : AbstractJwtProvider
Implementation of AbstractJwtProvider with functions related to JWT authentication. The JWT authentication function is implemented based on Default JWT Authentication.
Throws
Functions
Link copied to clipboard
Method to generate access token.
Link copied to clipboard
Method to generate refresh token.
Link copied to clipboard
Variant of JwtProvider.createToken using secretKey.
open override fun createToken(authentication: JwtAuthentication, expire: Long, secretKey: SecretKey): Token
open override fun createToken(payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token
open override fun createToken(header: Map<String, String>, payload: Map<String, String>, expire: Long, secretKey: SecretKey): Token
Implementation of JwtProvider.createToken.
Link copied to clipboard
Implementation of JwtProvider.getAuthentication. Returns DefaultJwtAuthentication.
Link copied to clipboard
Implementation of JwtProvider.getPayload.