org.apache.shiro.web.subject.support
Class WebDelegatingSubject
java.lang.Object
org.apache.shiro.subject.support.DelegatingSubject
org.apache.shiro.web.subject.support.WebDelegatingSubject
- All Implemented Interfaces:
- Serializable, Subject, WebSubject, RequestPairSource
public class WebDelegatingSubject
- extends DelegatingSubject
- implements WebSubject
Default WebSubject implementation that additional ensures the ability to retain a
servlet request/response pair to be used by internal shiro components as necessary during the request execution.
- Since:
- 1.0
- See Also:
- Serialized Form
| Methods inherited from class org.apache.shiro.subject.support.DelegatingSubject |
assertAuthzCheckPossible, associateWith, associateWith, checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, decorate, execute, execute, getHost, getPreviousPrincipals, getPrincipal, getPrincipals, getSecurityManager, getSession, getSession, hasAllRoles, hasPrincipals, hasRole, hasRoles, isAuthenticated, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isRemembered, isRunAs, login, logout, releaseRunAs, runAs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
WebDelegatingSubject
public WebDelegatingSubject(PrincipalCollection principals,
boolean authenticated,
String host,
Session session,
ServletRequest request,
ServletResponse response,
SecurityManager securityManager)
getServletRequest
public ServletRequest getServletRequest()
- Description copied from interface:
WebSubject
- Returns the
ServletRequest accessible when the Subject instance was created.
- Specified by:
getServletRequest in interface WebSubject- Specified by:
getServletRequest in interface RequestPairSource
- Returns:
- the
ServletRequest accessible when the Subject instance was created.
getServletResponse
public ServletResponse getServletResponse()
- Description copied from interface:
WebSubject
- Returns the
ServletResponse accessible when the Subject instance was created.
- Specified by:
getServletResponse in interface WebSubject- Specified by:
getServletResponse in interface RequestPairSource
- Returns:
- the
ServletResponse accessible when the Subject instance was created.
createSessionContext
protected SessionContext createSessionContext()
- Overrides:
createSessionContext in class DelegatingSubject
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.