public class OverrideSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
http://stackoverflow.com/questions/17068528/authorization-with-rolesalloweddynamicfeature-and-jersey| Constructor and Description |
|---|
OverrideSecurityContext(String user,
List<String> roles,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
public Principal getUserPrincipal()
getUserPrincipal in interface javax.ws.rs.core.SecurityContextpublic String getAuthenticationScheme()
getAuthenticationScheme 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 © 2020. All rights reserved.