Package org.exoplatform.push.filter
Class AuthenticationHeaderFilter
- java.lang.Object
-
- org.exoplatform.push.filter.AuthenticationHeaderFilter
-
- All Implemented Interfaces:
org.exoplatform.web.filter.Filter
public class AuthenticationHeaderFilter extends Object implements org.exoplatform.web.filter.Filter
Filter setting authentication headers in a custom header. This is required by iOS version older than iOS 11 since they cannot read cookies headers directly.
-
-
Field Summary
Fields Modifier and Type Field Description static String[]COOKIES_TO_PROPAGATEstatic StringHEADER_AUTHORIZATION
-
Constructor Summary
Constructors Constructor Description AuthenticationHeaderFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain)protected StringgetCookieValue(javax.servlet.http.Cookie[] cookies, Object key)
-
-
-
Field Detail
-
HEADER_AUTHORIZATION
public static final String HEADER_AUTHORIZATION
- See Also:
- Constant Field Values
-
COOKIES_TO_PROPAGATE
public static final String[] COOKIES_TO_PROPAGATE
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfaceorg.exoplatform.web.filter.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
-