public class DefaultWebSubjectContext extends DefaultSubjectContextimplements WebSubjectContext
WebSubjectContext implementation that provides for additional storage and retrieval of a
ServletRequest and
ServletResponse.
AUTHENTICATED_SESSION_KEY, PRINCIPALS_SESSION_KEY, SESSION_CREATION_ENABLED| Constructor and Description |
|---|
DefaultWebSubjectContext()
|
DefaultWebSubjectContext(WebSubjectContext
|
| 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.
|
String |
resolveHost()
|
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, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubjectclear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, 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, valuespublic DefaultWebSubjectContext()
public DefaultWebSubjectContext(WebSubjectContextcontext)
public StringresolveHost()
public ServletRequest getServletRequest()
WebSubjectContext
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
getServletRequest in interface
WebSubjectContext
getServletRequest in interface
RequestPairSource
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
public void setServletRequest(ServletRequest request)
WebSubjectContext
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
setServletRequest in interface
WebSubjectContext
request - the
ServletRequest received by the servlet container triggering the creation of the
Subject instance.
public ServletRequest resolveServletRequest()
public ServletResponse getServletResponse()
WebSubjectContext
ServletResponse corresponding to the associated
servletRequest.
getServletResponse in interface
WebSubjectContext
getServletResponse in interface
RequestPairSource
ServletResponse corresponding to the associated
servletRequest.
public void setServletResponse(ServletResponse response)
WebSubjectContext
ServletResponse corresponding to the associated
servletRequest.
setServletResponse in interface
WebSubjectContext
response - The paired
ServletResponse corresponding to the associated
servletRequest.
public ServletResponse resolveServletResponse()