public interface WebSubject extends Subject, RequestPairSource
WebSubject represents a Subject instance that was acquired as a result of an incoming
ServletRequest.
| Modifier and Type | Interface and Description |
|---|---|
static class |
WebSubject
A
WebSubject.Builder performs the same function as a
Subject.Builder, but additionally ensures that the Servlet request/response pair that is triggering the Subject instance's creation is retained for use by internal Shiro components as necessary.
|
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
getServletRequest()
Returns the
ServletRequest accessible when the Subject instance was created.
|
ServletResponse |
getServletResponse()
Returns the
ServletResponse accessible when the Subject instance was created.
|
associateWith, associateWith, checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, execute, execute, getPreviousPrincipals, getPrincipal, getPrincipals, getSession, getSession, hasAllRoles, hasRole, hasRoles, isAuthenticated, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isRemembered, isRunAs, login, logout, releaseRunAs, runAsServletRequest getServletRequest()
ServletRequest accessible when the Subject instance was created.
getServletRequest in interface
RequestPairSource
ServletRequest accessible when the Subject instance was created.
ServletResponse getServletResponse()
ServletResponse accessible when the Subject instance was created.
getServletResponse in interface
RequestPairSource
ServletResponse accessible when the Subject instance was created.