Class DefaultWebSubjectContext

java.lang.Object
org.apache.shiro.util.MapContext
org.apache.shiro.subject.support.DefaultSubjectContext
org.apache.shiro.web.subject.support.DefaultWebSubjectContext
All Implemented Interfaces:
Serializable, Map<String,Object>, org.apache.shiro.subject.SubjectContext, WebSubjectContext, RequestPairSource

public class DefaultWebSubjectContext extends org.apache.shiro.subject.support.DefaultSubjectContext implements WebSubjectContext
Default WebSubjectContext implementation that provides for additional storage and retrieval of a ServletRequest and ServletResponse.
Since:
1.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K,V>
  • Field Summary

    Fields inherited from class org.apache.shiro.subject.support.DefaultSubjectContext

    AUTHENTICATED_SESSION_KEY, PRINCIPALS_SESSION_KEY, SESSION_CREATION_ENABLED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.servlet.ServletRequest
    Returns the ServletRequest received by the servlet container triggering the creation of the Subject instance.
    javax.servlet.ServletResponse
    The paired ServletResponse corresponding to the associated servletRequest.
     
    javax.servlet.ServletRequest
     
    javax.servlet.ServletResponse
     
    void
    setServletRequest(javax.servlet.ServletRequest request)
    Sets the ServletRequest received by the servlet container triggering the creation of the Subject instance.
    void
    setServletResponse(javax.servlet.ServletResponse response)
    Sets the paired ServletResponse corresponding to the associated servletRequest.

    Methods inherited from class org.apache.shiro.subject.support.DefaultSubjectContext

    getAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubject

    Methods inherited from class org.apache.shiro.util.MapContext

    clear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, values

    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.SubjectContext

    getAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubject