public class JwtTokenSecurityContext extends Object implements org.apache.cxf.rt.security.claims.ClaimsSecurityContext
| Constructor and Description |
|---|
JwtTokenSecurityContext(org.apache.cxf.rs.security.jose.jwt.JwtToken jwt,
String roleClaim) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.cxf.rt.security.claims.ClaimCollection |
getClaims() |
Subject |
getSubject() |
org.apache.cxf.rs.security.jose.jwt.JwtToken |
getToken() |
Principal |
getUserPrincipal() |
Set<Principal> |
getUserRoles() |
boolean |
isUserInRole(String role) |
public JwtTokenSecurityContext(org.apache.cxf.rs.security.jose.jwt.JwtToken jwt,
String roleClaim)
public org.apache.cxf.rs.security.jose.jwt.JwtToken getToken()
public Subject getSubject()
getSubject in interface org.apache.cxf.security.LoginSecurityContextpublic Set<Principal> getUserRoles()
getUserRoles in interface org.apache.cxf.security.LoginSecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface org.apache.cxf.security.SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface org.apache.cxf.security.SecurityContextpublic org.apache.cxf.rt.security.claims.ClaimCollection getClaims()
getClaims in interface org.apache.cxf.rt.security.claims.ClaimsSecurityContextApache CXF