public class SimpleSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Constructor and Description |
|---|
SimpleSecurityContext(boolean secure) |
SimpleSecurityContext(Principal principal,
Set<String> userRoles,
String authenticationScheme,
boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
Set<String> |
getUserRoles() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public SimpleSecurityContext(Principal principal, Set<String> userRoles, String authenticationScheme, boolean secure)
public SimpleSecurityContext(boolean secure)
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 © 2015. All rights reserved.