Class JWTTokenGenerator
java.lang.Object
org.openmetadata.service.security.jwt.JWTTokenGenerator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongenerateJWTToken(String userName, String email, long expiryInSeconds, boolean isBot, ServiceTokenType tokenType) generateJWTToken(User user, JWTTokenExpiry expiry) getCustomExpiryDate(long seconds) static DategetExpiryDate(JWTTokenExpiry jwtTokenExpiry) static JWTTokenGeneratorgetJwtAuthMechanism(String userName, String email, boolean isBot, ServiceTokenType tokenType, Date expires, JWTTokenExpiry expiry) getTokenExpiryFromJWT(String token) voidinit(JWTTokenConfiguration jwtTokenConfiguration) Expected to be initialized only once during application start
-
Field Details
-
SUBJECT_CLAIM
- See Also:
-
TOKEN_TYPE
- See Also:
-
-
Method Details
-
getInstance
-
init
Expected to be initialized only once during application start -
generateJWTToken
-
generateJWTToken
public JWTAuthMechanism generateJWTToken(String userName, String email, long expiryInSeconds, boolean isBot, ServiceTokenType tokenType) -
getJwtAuthMechanism
public JWTAuthMechanism getJwtAuthMechanism(String userName, String email, boolean isBot, ServiceTokenType tokenType, Date expires, JWTTokenExpiry expiry) -
getExpiryDate
-
getCustomExpiryDate
-
getJWKSResponse
-
getTokenExpiryFromJWT
-