public class UserContext extends 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 |
|---|---|
String |
getAuthenticationScheme() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
Credentials |
getUser() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public UserContext(javax.ws.rs.core.UriInfo uriInfo,
Credentials user)
public Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic boolean isUserInRole(String role)
isUserInRole in interface javax.ws.rs.core.SecurityContextpublic boolean isSecure()
isSecure in interface javax.ws.rs.core.SecurityContextpublic String getAuthenticationScheme()
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContextpublic Credentials getUser()
public javax.ws.rs.core.UriInfo getUriInfo()
Copyright © 2014. All rights reserved.