public class RedisAuthService extends TokenSettings implements AuthService
tokenSecret, tokenTimeoutAUTH_HEADER_NAME| Constructor and Description |
|---|
RedisAuthService() |
| Modifier and Type | Method and Description |
|---|---|
User |
addAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication) |
String |
createTokenForUser(User user,
String secret)
creates a token without expiration
expiration is to be validated against redis
|
org.springframework.security.core.Authentication |
getAuthentication(javax.servlet.http.HttpServletRequest request) |
getTokenTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromJSON, getTokenTimeout, getTokenUser, parseUserFromToken, toJSONpublic User addAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
addAuthentication in interface AuthServicepublic org.springframework.security.core.Authentication getAuthentication(javax.servlet.http.HttpServletRequest request)
getAuthentication in interface AuthServicepublic String createTokenForUser(User user, String secret)
createTokenForUser in interface AuthServiceuser - the user to create token forsecret - the secret for signatureCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.