public class JwtTokenSecurityContext extends Object implements ClaimsSecurityContext
Constructor and Description |
---|
JwtTokenSecurityContext(JwtToken jwt,
String roleClaim) |
Modifier and Type | Method and Description |
---|---|
ClaimCollection |
getClaims() |
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()
LoginSecurityContext
getSubject
in interface LoginSecurityContext
public Set<Principal> getUserRoles()
LoginSecurityContext
getUserRoles
in interface LoginSecurityContext
public Principal getUserPrincipal()
getUserPrincipal
in interface SecurityContext
public boolean isUserInRole(String role)
isUserInRole
in interface SecurityContext
public ClaimCollection getClaims()
getClaims
in interface ClaimsSecurityContext
Apache CXF