JwtProvider

@Component
@EnableConfigurationProperties(value = [JwtProperties::class])
class JwtProvider(jwtProperties: JwtProperties)

Constructors

Link copied to clipboard
constructor(jwtProperties: JwtProperties)

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun createAccessToken(email: String, roles: Set<UserRole>, jit: String = UUID.randomUUID().toString(), issuedAt: Instant = Instant.now(), duration: Long = jwtProperties.accessExpiry): String

JWT Access Token을 생성합니다.

Link copied to clipboard
fun createRefreshToken(email: String, jit: String, issuedAt: Instant = Instant.now(), duration: Long = jwtProperties.refreshExpiry): String

JWT Refresh Token을 생성합니다.

Link copied to clipboard
fun decodeAccessToken(token: String): UserDetails

JWT Access Token을 Decode합니다.

Link copied to clipboard

JWT Refresh Token을 Decode합니다.