public class ShiroSecurityContext extends Object implements javax.ws.rs.core.SecurityContext
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_CREATE_SESSION_KEY |
| 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() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders() |
String |
getPassword() |
org.apache.shiro.subject.Subject |
getSubject() |
org.apache.shiro.authc.AuthenticationToken |
getToken() |
String |
getUsername() |
Principal |
getUserPrincipal() |
boolean |
isSecure() |
static boolean |
isSessionCreationRequested() |
boolean |
isUserInRole(String role) |
void |
loginSubject() |
static void |
requestSessionCreation(boolean createSessionRequest) |
public static final String AUTO_CREATE_SESSION_KEY
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 org.apache.shiro.authc.AuthenticationToken getToken()
public void loginSubject()
throws org.apache.shiro.authc.AuthenticationException
org.apache.shiro.authc.AuthenticationExceptionpublic static boolean isSessionCreationRequested()
public static void requestSessionCreation(boolean createSessionRequest)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.