public class JWTAuthenticationUtil extends Object
| Constructor and Description |
|---|
JWTAuthenticationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<? extends org.springframework.security.core.GrantedAuthority> |
getCurrentUserAuthorities()
Get authorities of the authenticated user.
|
static String |
getCurrentUserId()
Get user id if the user authenticated.
|
static String |
getCurrentUserSessionId()
Get session id of the JWT token if the user authenticated.
|
public static String getCurrentUserId()
public static Collection<? extends org.springframework.security.core.GrantedAuthority> getCurrentUserAuthorities()
public static String getCurrentUserSessionId()
Copyright © 2017 S&C Software. All rights reserved.