Class PortalIDPWebBrowserSSOFilter
java.lang.Object
org.picketlink.identity.federation.web.filters.IDPFilter
org.gatein.sso.saml.plugin.filter.PortalIDPWebBrowserSSOFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.gatein.sso.agent.filter.api.SSOInterceptor
public class PortalIDPWebBrowserSSOFilter
extends org.picketlink.identity.federation.web.filters.IDPFilter
implements org.gatein.sso.agent.filter.api.SSOInterceptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.servlet.FilterConfigThe filter configurationstatic final Stringprotected StringThe Servlet context nameFields inherited from class org.picketlink.identity.federation.web.filters.IDPFilter
auditHelper, authMethod, configProvider, enableAudit, idpConfiguration, picketLinkConfiguration, servletContext, timer, timerInterval -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) protected StringgetInitParameter(String paramName) Read init parameter (works for both kernel initialization or Servlet API initialization)protected javax.servlet.ServletContextfinal voidinit(javax.servlet.FilterConfig config) protected voidinitImpl()This method needs to be implemented by conrete filter.final voidinitWithParams(org.exoplatform.container.xml.InitParams params, org.exoplatform.container.ExoContainerContext containerContext) Method is invoked if we are performing initialization through exo kernelprotected booleanIndicates if it requires that a full portal environment must be setMethods inherited from class org.picketlink.identity.federation.web.filters.IDPFilter
cleanUpSessionNote, destroy, determineLoginType, getConfigProvider, getConfiguration, getIdentityURL, handleSAML11UnsolicitedResponse, initHandlersChain, initIdentityServer, initIDPConfiguration, initKeyManager, initSTSConfiguration, processSAMLRequestMessage, processSAMLResponseMessage, sendErrorResponseToSP, startPicketLinkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.Filter
destroy
-
Field Details
-
ORIGINAL_HTTP_SERVLET_REQUEST_PARAM
- See Also:
-
config
protected javax.servlet.FilterConfig configThe filter configuration -
servletContextName
The Servlet context name
-
-
Constructor Details
-
PortalIDPWebBrowserSSOFilter
public PortalIDPWebBrowserSSOFilter()
-
-
Method Details
-
init
public final void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Filter- Overrides:
initin classorg.picketlink.identity.federation.web.filters.IDPFilter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.Filter- Overrides:
doFilterin classorg.picketlink.identity.federation.web.filters.IDPFilter- Throws:
IOExceptionjavax.servlet.ServletException
-
initWithParams
public final void initWithParams(org.exoplatform.container.xml.InitParams params, org.exoplatform.container.ExoContainerContext containerContext) Method is invoked if we are performing initialization through exo kernel- Specified by:
initWithParamsin interfaceorg.gatein.sso.agent.filter.api.SSOInterceptor
-
initImpl
protected void initImpl() throws javax.servlet.ServletExceptionThis method needs to be implemented by conrete filter. Filter should obtain it's init parameters by callinggetInitParameter(String). This works in both types of initialization (Case1: Filter initialization through kernel, Case2: initialization through servlet API)- Throws:
javax.servlet.ServletException- an init exception happens when calling super class init method
-
getInitParameter
Read init parameter (works for both kernel initialization or Servlet API initialization)- Parameters:
paramName- parameter name- Returns:
- parameter value
-
requirePortalEnvironment
protected boolean requirePortalEnvironment()Indicates if it requires that a full portal environment must be set- Returns:
trueif it requires the portal environmentfalseotherwise.
-
getServletContext
protected javax.servlet.ServletContext getServletContext()- Returns:
- the current
ServletContext
-