public class ServiceProviderSAMLWorkflow extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServiceProviderSAMLWorkflow.RedirectionHandler
Class that handles the web container specific behavior for POST
and REDIRECT workflows
|
Constructor and Description |
---|
ServiceProviderSAMLWorkflow() |
Modifier and Type | Method and Description |
---|---|
boolean |
isGlobalLogout(HttpServletRequest request)
Indicates if the current request is a GlobalLogout request.
|
boolean |
isLocalLogoutRequest(HttpServletRequest request)
Verify whether a
HttpServletRequest is for Local Logout |
void |
sendHttpPostBindingRequest(String destination,
Document samlDocument,
String relayState,
HttpServletResponse response,
boolean willSendRequest)
Sends a HTTP POST request to the IDP.
|
void |
sendHttpRedirectRequest(String destination,
Document samlDocument,
String relayState,
HttpServletResponse response,
boolean willSendRequest,
String destinationQueryStringWithSignature)
Sends a HTTP Redirect request to the IDP.
|
void |
sendRequestToIDP(String destination,
Document samlDocument,
String relayState,
HttpServletResponse response,
boolean willSendRequest,
String destinationQueryStringWithSignature,
boolean httpPostBinding)
Send the request to the IDP.
|
void |
sendToLogoutPage(HttpServletRequest request,
HttpServletResponse response,
HttpSession session,
ServletContext servletContext,
String logOutPage) |
ServiceProviderSAMLWorkflow |
setRedirectionHandler(ServiceProviderSAMLWorkflow.RedirectionHandler theHandler)
Set a web container specific
ServiceProviderSAMLWorkflow.RedirectionHandler |
boolean |
validate(HttpServletRequest request)
Perform validation of the request object
|
public ServiceProviderSAMLWorkflow setRedirectionHandler(ServiceProviderSAMLWorkflow.RedirectionHandler theHandler)
ServiceProviderSAMLWorkflow.RedirectionHandler
theHandler
- ServiceProviderSAMLWorkflow
for chaining methodspublic boolean validate(HttpServletRequest request)
request
- public boolean isGlobalLogout(HttpServletRequest request)
Indicates if the current request is a GlobalLogout request.
request
- public boolean isLocalLogoutRequest(HttpServletRequest request)
HttpServletRequest
is for Local Logoutrequest
- public void sendToLogoutPage(HttpServletRequest request, HttpServletResponse response, HttpSession session, ServletContext servletContext, String logOutPage) throws IOException, ServletException
IOException
ServletException
public void sendRequestToIDP(String destination, Document samlDocument, String relayState, HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature, boolean httpPostBinding) throws ProcessingException, ConfigurationException, IOException
Send the request to the IDP. Subclasses should override this method to implement how requests must be sent to the IDP.
destination
- idp urlsamlDocument
- request or response documentrelayState
- response
- willSendRequest
- are we sending Request or Response to IDPdestinationQueryStringWithSignature
- used only with Redirect binding and with signature enabled.httpPostBinding
- ProcessingException
ConfigurationException
IOException
public void sendHttpRedirectRequest(String destination, Document samlDocument, String relayState, HttpServletResponse response, boolean willSendRequest, String destinationQueryStringWithSignature) throws IOException, ProcessingException, ConfigurationException
Sends a HTTP Redirect request to the IDP.
destination
- relayState
- response
- willSendRequest
- destinationQueryStringWithSignature
- IOException
UnsupportedEncodingException
ConfigurationException
ProcessingException
public void sendHttpPostBindingRequest(String destination, Document samlDocument, String relayState, HttpServletResponse response, boolean willSendRequest) throws ProcessingException, IOException, ConfigurationException
Sends a HTTP POST request to the IDP.
destination
- samlDocument
- relayState
- response
- willSendRequest
- TrustKeyProcessingException
ProcessingException
IOException
ConfigurationException
Copyright © 2021 JBoss by Red Hat. All rights reserved.