
public class JwtSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Modifier and Type | Field and Description |
|---|---|
private net.trajano.ms.core.JwtClaimsSetPrincipal |
principal |
private Set<String> |
roles
Roles.
|
private boolean |
secure |
| Constructor and Description |
|---|
JwtSecurityContext(org.jose4j.jwt.JwtClaims claims,
javax.ws.rs.core.UriInfo uriInfo) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
private final net.trajano.ms.core.JwtClaimsSetPrincipal principal
private final boolean secure
public JwtSecurityContext(org.jose4j.jwt.JwtClaims claims,
javax.ws.rs.core.UriInfo uriInfo)
public String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextpublic Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface javax.ws.rs.core.SecurityContextCopyright © 2012–2018 Trajano. All rights reserved.