toggle menu
few
jvm
switch theme
search in API
security
/
security.token
/
SecurityTokenGenerator
Security
Token
Generator
class
SecurityTokenGenerator
(
secretKey
:
String
,
accessTokenValidTime
:
Long
,
refreshTokenValidTime
:
Long
)
:
TokenGenerator
Members
Constructors
Security
Token
Generator
Link copied to clipboard
constructor
(
secretKey
:
String
,
accessTokenValidTime
:
Long
,
refreshTokenValidTime
:
Long
)
Functions
convert
To
String
List
Link copied to clipboard
open
override
fun
convertToStringList
(
memberRoles
:
List
<
Roles
>
)
:
List
<
String
>
generate
Access
Token
Link copied to clipboard
open
override
fun
generateAccessToken
(
memberId
:
Long
?
,
memberEmail
:
String
?
,
memberRoles
:
List
<
Roles
>
,
accessTokenValidTime
:
Long
?
)
:
String
generate
Auth
Token
Link copied to clipboard
open
override
fun
generateAuthToken
(
memberId
:
Long
?
,
memberEmail
:
String
?
,
memberRoles
:
List
<
Roles
>
)
:
AuthToken
open
override
fun
generateAuthToken
(
memberId
:
Long
?
,
memberEmail
:
String
?
,
memberRoles
:
List
<
Roles
>
,
accessTokenValidTime
:
Long
?
,
refreshTokenValidTime
:
Long
?
)
:
AuthToken
generate
Refresh
Token
Link copied to clipboard
open
override
fun
generateRefreshToken
(
memberId
:
Long
?
,
memberEmail
:
String
?
,
memberRoles
:
List
<
Roles
>
,
refreshTokenValidTime
:
Long
?
)
:
String