public class ShiroSecurityContext extends Object implements org.graylog2.jersey.container.netty.HeaderAwareSecurityContext
| Modifier and Type | Class and Description |
|---|---|
class |
ShiroSecurityContext.ShiroPrincipal |
| Constructor and Description |
|---|
ShiroSecurityContext(org.apache.shiro.subject.Subject subject,
org.apache.shiro.authc.AuthenticationToken token,
boolean isSecure,
String authcScheme) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders() |
String |
getPassword() |
org.apache.shiro.subject.Subject |
getSubject() |
String |
getUsername() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
void |
loginSubject() |
void |
setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers) |
public ShiroSecurityContext(org.apache.shiro.subject.Subject subject,
org.apache.shiro.authc.AuthenticationToken token,
boolean isSecure,
String authcScheme)
public String getUsername()
public String getPassword()
public org.apache.shiro.subject.Subject getSubject()
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 void loginSubject()
throws org.apache.shiro.authc.AuthenticationException
org.apache.shiro.authc.AuthenticationExceptionpublic void setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)
setHeaders in interface org.graylog2.jersey.container.netty.HeaderAwareSecurityContextCopyright © 2012–2014 TORCH GmbH. All rights reserved.