public class ShiroSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Constructor and Description |
|---|
ShiroSecurityContext(org.apache.shiro.subject.Subject subject,
org.apache.shiro.authc.AuthenticationToken token,
boolean isSecure,
String authcScheme,
javax.ws.rs.core.MultivaluedMap<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationScheme() |
String |
getPassword() |
org.apache.shiro.subject.Subject |
getSubject() |
protected org.apache.shiro.authc.AuthenticationToken |
getToken() |
String |
getUsername() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
boolean |
isUserInRole(String role) |
void |
loginSubject() |
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.SecurityContextprotected org.apache.shiro.authc.AuthenticationToken getToken()
public void loginSubject()
throws org.apache.shiro.authc.AuthenticationException
org.apache.shiro.authc.AuthenticationExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.