public interface WebSubjectContext extends SubjectContext, RequestPairSource
WebSubjectContext is a
SubjectContext that additionally provides for type-safe methods to set and retrieve a
ServletRequest and
ServletResponse.
| Modifier and Type | Method and Description |
|---|---|
ServletRequest |
getServletRequest()
Returns the
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
|
ServletResponse |
getServletResponse()
The paired
ServletResponse corresponding to the associated
servletRequest.
|
ServletRequest |
resolveServletRequest()
|
ServletResponse |
resolveServletResponse()
|
void |
setServletRequest(ServletRequest request)
Sets the
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
|
void |
setServletResponse(ServletResponse response)
Sets the paired
ServletResponse corresponding to the associated
servletRequest.
|
getAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, resolveHost, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubjectclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesServletRequest getServletRequest()
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
getServletRequest in interface
RequestPairSource
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
void setServletRequest(ServletRequest request)
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
request - the
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
ServletRequest resolveServletRequest()
ServletResponse getServletResponse()
ServletResponse corresponding to the associated
servletRequest.
getServletResponse in interface
RequestPairSource
ServletResponse corresponding to the associated
servletRequest.
void setServletResponse(ServletResponse response)
ServletResponse corresponding to the associated
servletRequest.
response - The paired
ServletResponse corresponding to the associated
servletRequest.
ServletResponse resolveServletResponse()