public class IDPFilter extends Object implements javax.servlet.Filter
Filter
that can be configured to convert a
JavaEE Web Application to an IDPModifier 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) |
SAMLConfigurationProvider |
getConfigProvider() |
protected PicketLinkType |
getConfiguration()
Returns the configurations used.
|
protected String |
getIdentityURL() |
protected void |
handleSAML11UnsolicitedResponse(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,
RequestAbstractType requestType,
boolean ignoreSignatureValidation) |
protected void |
processSAMLResponseMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
sendErrorResponseToSP(String referrer,
javax.servlet.http.HttpServletResponse response,
String relayState,
IDPWebRequestUtil webRequestUtil) |
protected void |
startPicketLink() |
protected javax.servlet.ServletContext servletContext
protected boolean enableAudit
protected PicketLinkAuditHelper auditHelper
protected IDPType idpConfiguration
protected PicketLinkType picketLinkConfiguration
protected SAMLConfigurationProvider configProvider
SAMLConfigurationProvider
protected int timerInterval
protected Timer timer
protected String authMethod
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
protected void processSAMLRequestMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestAbstractType requestType, boolean ignoreSignatureValidation) throws IOException
IOException
protected void processSAMLResponseMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected 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.ServletException
IOException
ConfigurationException
protected void initIdentityServer()
Initializes the IdentityServer
.
protected void initHandlersChain()
Initialize the Handlers chain.
protected void initKeyManager()
protected void initIDPConfiguration()
Initializes the IDP configuration.
protected void initSTSConfiguration()
protected String getIdentityURL()
protected String determineLoginType(boolean isSecure)
protected void startPicketLink()
protected PicketLinkType getConfiguration()
Returns the configurations used.
public SAMLConfigurationProvider getConfigProvider()
protected void handleSAML11UnsolicitedResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
Copyright © 2018. All rights reserved.