public class IDPFilter extends Object implements javax.servlet.Filter
Filter that can be configured to convert a
JavaEE Web Application to an IDP| Modifier and Type | Field and Description |
|---|---|
protected PicketLinkAuditHelper |
auditHelper |
protected String |
authMethod |
protected SAMLConfigurationProvider |
configProvider
The user can inject a fully qualified name of a
SAMLConfigurationProvider |
protected boolean |
enableAudit |
protected IDPType |
idpConfiguration |
protected PicketLinkType |
picketLinkConfiguration |
protected javax.servlet.ServletContext |
servletContext |
protected Timer |
timer |
protected int |
timerInterval |
| Constructor and Description |
|---|
IDPFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUpSessionNote(javax.servlet.http.HttpServletRequest request) |
void |
destroy() |
protected String |
determineLoginType(boolean isSecure) |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
protected PicketLinkType |
getConfiguration()
Returns the configurations used.
|
protected String |
getIdentityURL() |
protected void |
handleSAML11(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
initHandlersChain()
Initialize the Handlers chain.
|
protected void |
initIdentityServer()
Initializes the
IdentityServer. |
protected void |
initIDPConfiguration()
Initializes the IDP configuration.
|
protected void |
initKeyManager() |
protected void |
initSTSConfiguration()
Initializes the STS configuration.
|
protected void |
processSAMLRequestMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
processSAMLResponseMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
recycle(javax.servlet.http.HttpServletResponse response) |
protected void |
sendErrorResponseToSP(String referrer,
javax.servlet.http.HttpServletResponse response,
String relayState,
IDPWebRequestUtil webRequestUtil) |
void |
setAuditHelper(PicketLinkAuditHelper auditHelper) |
protected void |
startPicketLink() |
protected javax.servlet.ServletContext servletContext
protected boolean enableAudit
protected PicketLinkAuditHelper auditHelper
protected IDPType idpConfiguration
protected PicketLinkType picketLinkConfiguration
protected SAMLConfigurationProvider configProvider
SAMLConfigurationProviderprotected int timerInterval
protected Timer timer
protected String authMethod
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterprotected void handleSAML11(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void processSAMLRequestMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionprotected void processSAMLResponseMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void cleanUpSessionNote(javax.servlet.http.HttpServletRequest request)
protected void sendErrorResponseToSP(String referrer, javax.servlet.http.HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws javax.servlet.ServletException, IOException, ConfigurationException
javax.servlet.ServletExceptionIOExceptionConfigurationExceptionprotected void initIdentityServer()
Initializes the IdentityServer.
protected void initHandlersChain()
Initialize the Handlers chain.
LifecycleExceptionprotected void initKeyManager()
protected void initIDPConfiguration()
Initializes the IDP configuration.
protected void initSTSConfiguration()
protected String getIdentityURL()
protected String determineLoginType(boolean isSecure)
protected void startPicketLink()
public void setAuditHelper(PicketLinkAuditHelper auditHelper)
protected void recycle(javax.servlet.http.HttpServletResponse response)
protected PicketLinkType getConfiguration()
Returns the configurations used.
Copyright © 2014 JBoss Inc.. All Rights Reserved.