public class JwtTokenSecurityContext extends Object implements LoginSecurityContext
| Constructor and Description |
|---|
JwtTokenSecurityContext(JwtToken jwt,
String roleClaim) |
| Modifier and Type | Method and Description |
|---|---|
Subject |
getSubject()
Returns the Subject representing the current authenticated user.
|
JwtToken |
getToken() |
Principal |
getUserPrincipal() |
Set<Principal> |
getUserRoles()
Returns a set of Principals representing the roles
assigned to the current authenticated user Principal
|
boolean |
isUserInRole(String role) |
public JwtToken getToken()
public Subject getSubject()
LoginSecurityContextgetSubject in interface LoginSecurityContextpublic Set<Principal> getUserRoles()
LoginSecurityContextgetUserRoles in interface LoginSecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface SecurityContextApache CXF