Class DefaultWebSubjectContext

    • Field Summary

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

        AUTHENTICATED_SESSION_KEY, PRINCIPALS_SESSION_KEY, SESSION_CREATION_ENABLED
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.servlet.ServletRequest getServletRequest()
      Returns the ServletRequest received by the servlet container triggering the creation of the Subject instance.
      javax.servlet.ServletResponse getServletResponse()
      The paired ServletResponse corresponding to the associated servletRequest.
      String resolveHost()  
      javax.servlet.ServletRequest resolveServletRequest()  
      javax.servlet.ServletResponse resolveServletResponse()  
      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 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
    • Constructor Detail

      • DefaultWebSubjectContext

        public DefaultWebSubjectContext()
      • DefaultWebSubjectContext

        public DefaultWebSubjectContext​(WebSubjectContext context)
    • Method Detail

      • resolveHost

        public String resolveHost()
        Specified by:
        resolveHost in interface org.apache.shiro.subject.SubjectContext
        Overrides:
        resolveHost in class org.apache.shiro.subject.support.DefaultSubjectContext
      • getServletRequest

        public javax.servlet.ServletRequest getServletRequest()
        Description copied from interface: WebSubjectContext
        Returns the ServletRequest received by the servlet container triggering the creation of the Subject instance.
        Specified by:
        getServletRequest in interface RequestPairSource
        Specified by:
        getServletRequest in interface WebSubjectContext
        Returns:
        the ServletRequest received by the servlet container triggering the creation of the Subject instance.
      • setServletRequest

        public void setServletRequest​(javax.servlet.ServletRequest request)
        Description copied from interface: WebSubjectContext
        Sets the ServletRequest received by the servlet container triggering the creation of the Subject instance.
        Specified by:
        setServletRequest in interface WebSubjectContext
        Parameters:
        request - the ServletRequest received by the servlet container triggering the creation of the Subject instance.