public class SPFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
protected PicketLinkAuditHelper |
auditHelper |
protected String |
canonicalizationMethod |
protected Lock |
chainLock |
static String |
CHARACTER_ENCODING |
protected String |
configFile |
protected SAMLConfigurationProvider |
configProvider |
static String |
CONFIGURATION_PROVIDER |
static String |
DESIRED_IDP |
protected String |
identityURL |
protected IDPSSODescriptorType |
idpMetadata |
protected boolean |
ignoreSignatures |
static String |
ISSUER_ID |
protected String |
issuerID |
protected static PicketLinkLogger |
logger |
protected PicketLinkType |
picketLinkConfiguration |
static String |
SAML_HANDLER_CHAIN_CLASS |
protected String |
samlHandlerChainClass |
protected String |
serviceURL |
protected SPType |
spConfiguration |
Constructor and Description |
---|
SPFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
protected boolean |
doSupportSignature() |
protected String |
getBinding() |
String |
getIdentityURL() |
protected IDPSSODescriptorType |
getIdpMetadataFromFile(SPType configuration) |
protected IDPSSODescriptorType |
getIDPSSODescriptor(EntitiesDescriptorType entities) |
protected IDPSSODescriptorType |
handleMetadata(EntitiesDescriptorType entities) |
protected IDPSSODescriptorType |
handleMetadata(EntityDescriptorType entityDescriptor) |
boolean |
handleSAML11UnsolicitedResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
initializeHandlerChain(PicketLinkType picketLinkType) |
protected void |
initKeyProvider() |
protected boolean |
isHttpPostBinding() |
protected boolean |
localAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
populateChainConfig(PicketLinkType picketLinkType) |
protected void |
processConfiguration(javax.servlet.FilterConfig filterConfig) |
protected void |
sendHttpPostBindingRequest(String destination,
Document samlDocument,
String relayState,
javax.servlet.http.HttpServletResponse response,
boolean willSendRequest) |
protected void |
sendHttpRedirectRequest(String destination,
Document samlDocument,
String relayState,
javax.servlet.http.HttpServletResponse response,
boolean willSendRequest,
String destinationQueryStringWithSignature) |
protected void |
sendRequestToIDP(String destination,
Document samlDocument,
String relayState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean willSendRequest,
String destinationQueryStringWithSignature) |
protected void |
sendToDestination(Document samlDocument,
String relayState,
String destination,
javax.servlet.http.HttpServletResponse response,
boolean request) |
protected void |
sendToLogoutPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpSession session) |
protected boolean |
validate(javax.servlet.http.HttpServletRequest request) |
protected static final PicketLinkLogger logger
public static final String ISSUER_ID
public static final String DESIRED_IDP
public static final String CHARACTER_ENCODING
public static final String CONFIGURATION_PROVIDER
public static final String SAML_HANDLER_CHAIN_CLASS
protected SPType spConfiguration
protected PicketLinkType picketLinkConfiguration
protected String configFile
protected String serviceURL
protected String identityURL
protected transient String samlHandlerChainClass
protected boolean ignoreSignatures
protected String canonicalizationMethod
protected volatile PicketLinkAuditHelper auditHelper
protected volatile String issuerID
protected IDPSSODescriptorType idpMetadata
protected Lock chainLock
protected SAMLConfigurationProvider configProvider
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
protected void sendToDestination(Document samlDocument, String relayState, String destination, javax.servlet.http.HttpServletResponse response, boolean request) throws IOException, SAXException, GeneralSecurityException
protected void sendToLogoutPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpSession session) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public String getIdentityURL()
protected void sendRequestToIDP(String destination, Document samlDocument, String relayState, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature) throws ProcessingException, ConfigurationException, IOException
protected boolean isHttpPostBinding()
protected void sendHttpPostBindingRequest(String destination, Document samlDocument, String relayState, javax.servlet.http.HttpServletResponse response, boolean willSendRequest) throws ProcessingException, IOException, ConfigurationException
protected void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, javax.servlet.http.HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException
protected String getBinding()
protected boolean localAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
protected boolean validate(javax.servlet.http.HttpServletRequest request)
public boolean handleSAML11UnsolicitedResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
protected IDPSSODescriptorType handleMetadata(EntitiesDescriptorType entities)
protected IDPSSODescriptorType handleMetadata(EntityDescriptorType entityDescriptor)
protected IDPSSODescriptorType getIDPSSODescriptor(EntitiesDescriptorType entities)
protected IDPSSODescriptorType getIdpMetadataFromFile(SPType configuration)
protected void processConfiguration(javax.servlet.FilterConfig filterConfig)
protected void initKeyProvider()
protected boolean doSupportSignature()
protected void initializeHandlerChain(PicketLinkType picketLinkType) throws Exception
Exception
protected void populateChainConfig(PicketLinkType picketLinkType) throws ConfigurationException, ProcessingException
Copyright © 2019. All rights reserved.