public class SessionAuthService extends TokenSettings implements AuthService
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_ATTRIBUTE_NAME |
tokenSecret, tokenTimeoutAUTH_HEADER_NAME| Constructor and Description |
|---|
SessionAuthService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Add the authentication on the response after performs other operations like persistence server side
|
org.springframework.security.core.Authentication |
getAuthentication(javax.servlet.http.HttpServletRequest request) |
getTokenTimeoutextractUserAppRolesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTokenForUser, extractUserAppRoles, fromJSON, getTokenTimeout, getTokenUser, parseUserFromToken, toJSONpublic static final String USER_ATTRIBUTE_NAME
public void addAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
AuthServiceaddAuthentication in interface AuthServicerequest - the http requestresponse - the http responseauthentication - the authenticationpublic org.springframework.security.core.Authentication getAuthentication(javax.servlet.http.HttpServletRequest request)
getAuthentication in interface AuthServiceCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.