public class UserContext
extends java.lang.Object
implements javax.ws.rs.core.SecurityContext
Constructor and Description |
---|
UserContext(javax.ws.rs.core.UriInfo uriInfo,
Credentials user) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthenticationScheme() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
Credentials |
getUser() |
java.security.Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String role) |
public UserContext(javax.ws.rs.core.UriInfo uriInfo, Credentials user)
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.ws.rs.core.SecurityContext
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface javax.ws.rs.core.SecurityContext
public boolean isSecure()
isSecure
in interface javax.ws.rs.core.SecurityContext
public java.lang.String getAuthenticationScheme()
getAuthenticationScheme
in interface javax.ws.rs.core.SecurityContext
public Credentials getUser()
public javax.ws.rs.core.UriInfo getUriInfo()