public class ServletSecurityContext
extends java.lang.Object
implements javax.ws.rs.core.SecurityContext
| Modifier and Type | Field and Description |
|---|---|
private javax.servlet.http.HttpServletRequest |
request |
| Constructor and Description |
|---|
ServletSecurityContext(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticationScheme() |
java.security.Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String role) |
public ServletSecurityContext(javax.servlet.http.HttpServletRequest request)
public java.security.Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(java.lang.String role)
isUserInRole in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic java.lang.String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext