Package org.apache.shiro.web.subject
Interface WebSubject
-
- All Superinterfaces:
RequestPairSource
,Subject
- All Known Implementing Classes:
WebDelegatingSubject
public interface WebSubject extends Subject, RequestPairSource
AWebSubject
represents a Subject instance that was acquired as a result of an incomingServletRequest
.- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WebSubject.Builder
AWebSubject.Builder
performs the same function as aSubject.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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServletRequest
getServletRequest()
Returns theServletRequest
accessible when the Subject instance was created.ServletResponse
getServletResponse()
Returns theServletResponse
accessible when the Subject instance was created.-
Methods inherited from interface org.apache.shiro.subject.Subject
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, runAs
-
-
-
-
Method Detail
-
getServletRequest
ServletRequest getServletRequest()
Returns theServletRequest
accessible when the Subject instance was created.- Specified by:
getServletRequest
in interfaceRequestPairSource
- Returns:
- the
ServletRequest
accessible when the Subject instance was created.
-
getServletResponse
ServletResponse getServletResponse()
Returns theServletResponse
accessible when the Subject instance was created.- Specified by:
getServletResponse
in interfaceRequestPairSource
- Returns:
- the
ServletResponse
accessible when the Subject instance was created.
-
-