public interface AuthService
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_HEADER_NAME |
static long |
VALIDITY_TIME_MS |
| Modifier and Type | Method and Description |
|---|---|
User |
addAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication) |
default String |
createTokenForUser(User user,
String secret) |
default User |
fromJSON(String userJSON) |
org.springframework.security.core.Authentication |
getAuthentication(javax.servlet.http.HttpServletRequest request) |
default TokenUser |
getTokenUser(org.springframework.security.core.Authentication authentication) |
default TokenUser |
parseUserFromToken(String token,
String secret) |
default String |
toJSON(User user) |
static final long VALIDITY_TIME_MS
static final String AUTH_HEADER_NAME
org.springframework.security.core.Authentication getAuthentication(javax.servlet.http.HttpServletRequest request)
User addAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
default TokenUser getTokenUser(org.springframework.security.core.Authentication authentication)
Copyright © 2018–2020 ODPi. All rights reserved.