Package org.keycloak.adapters.servlet
Class FilterSessionStore
- java.lang.Object
-
- org.keycloak.adapters.servlet.FilterSessionStore
-
- All Implemented Interfaces:
AdapterSessionStore
public class FilterSessionStore extends Object implements AdapterSessionStore
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpFacadefacadeprotected intmaxBufferprotected booleanneedRequestRestorestatic StringREDIRECT_URIprotected javax.servlet.http.HttpServletRequestrequestprotected byte[]restoredBufferstatic StringSAVED_BODYstatic StringSAVED_HEADERSstatic StringSAVED_METHOD
-
Constructor Summary
Constructors Constructor Description FilterSessionStore(javax.servlet.http.HttpServletRequest request, HttpFacade facade, int maxBuffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequestWrapperbuildWrapper(javax.servlet.http.HttpSession session, KeycloakAccount account)voidclearSavedRequest(javax.servlet.http.HttpSession session)static StringgetCharsetFromContentType(String contentType)StringgetRedirectUri()static MultivaluedHashMap<String,String>parseForm(InputStream entityStream)booleanrestoreRequest()voidsaveRequest()voidservletRequestLogout()
-
-
-
Field Detail
-
REDIRECT_URI
public static final String REDIRECT_URI
- See Also:
- Constant Field Values
-
SAVED_METHOD
public static final String SAVED_METHOD
- See Also:
- Constant Field Values
-
SAVED_HEADERS
public static final String SAVED_HEADERS
- See Also:
- Constant Field Values
-
SAVED_BODY
public static final String SAVED_BODY
- See Also:
- Constant Field Values
-
request
protected final javax.servlet.http.HttpServletRequest request
-
facade
protected final HttpFacade facade
-
maxBuffer
protected final int maxBuffer
-
restoredBuffer
protected byte[] restoredBuffer
-
needRequestRestore
protected boolean needRequestRestore
-
-
Constructor Detail
-
FilterSessionStore
public FilterSessionStore(javax.servlet.http.HttpServletRequest request, HttpFacade facade, int maxBuffer)
-
-
Method Detail
-
clearSavedRequest
public void clearSavedRequest(javax.servlet.http.HttpSession session)
-
servletRequestLogout
public void servletRequestLogout()
-
buildWrapper
public javax.servlet.http.HttpServletRequestWrapper buildWrapper(javax.servlet.http.HttpSession session, KeycloakAccount account)
-
getRedirectUri
public String getRedirectUri()
-
restoreRequest
public boolean restoreRequest()
- Specified by:
restoreRequestin interfaceAdapterSessionStore
-
parseForm
public static MultivaluedHashMap<String,String> parseForm(InputStream entityStream) throws IOException
- Throws:
IOException
-
saveRequest
public void saveRequest()
- Specified by:
saveRequestin interfaceAdapterSessionStore
-
-