PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.web.process
Class ServiceProviderSAMLRequestProcessor

java.lang.Object
  extended by org.picketlink.identity.federation.web.process.ServiceProviderBaseProcessor
      extended by org.picketlink.identity.federation.web.process.ServiceProviderSAMLRequestProcessor

public class ServiceProviderSAMLRequestProcessor
extends ServiceProviderBaseProcessor

Utility Class to handle processing of an SAML Request Message

Since:
Oct 27, 2009
Author:
Anil.Saldhana@redhat.com

Field Summary
 
Fields inherited from class org.picketlink.identity.federation.web.process.ServiceProviderBaseProcessor
auditHelper, identityURL, IDP_KEY, issuer, keyManager, logger, postBinding, serviceURL, spConfiguration
 
Constructor Summary
ServiceProviderSAMLRequestProcessor(boolean postBinding, String serviceURL)
          Construct
 
Method Summary
 boolean process(String samlRequest, HTTPContext httpContext, Set<SAML2Handler> handlers, Lock chainLock)
          Process the message
protected  void sendRequestToIDP(String destination, Document samlDocument, String relayState, javax.servlet.http.HttpServletResponse response, boolean willSendRequest)
          Send the request to the IDP
 
Methods inherited from class org.picketlink.identity.federation.web.process.ServiceProviderBaseProcessor
getIDPPublicKey, getSAML2HandlerRequest, isLogOutRequest, process, safeURL, setAuditHelper, setConfiguration, setIdentityURL, setIssuer, setRequestOptions, setTrustKeyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceProviderSAMLRequestProcessor

public ServiceProviderSAMLRequestProcessor(boolean postBinding,
                                           String serviceURL)
Construct

Parameters:
postBinding - Whether it is the Post Binding
serviceURL - Service URL of the SP
Method Detail

process

public boolean process(String samlRequest,
                       HTTPContext httpContext,
                       Set<SAML2Handler> handlers,
                       Lock chainLock)
                throws ProcessingException,
                       IOException,
                       ParsingException,
                       ConfigurationException
Process the message

Parameters:
samlRequest -
httpContext -
handlers -
chainLock - A Lock on the chain of handlers that needs to be used for locking
Returns:
Throws:
ProcessingException
IOException
ParsingException
ConfigurationException

sendRequestToIDP

protected void sendRequestToIDP(String destination,
                                Document samlDocument,
                                String relayState,
                                javax.servlet.http.HttpServletResponse response,
                                boolean willSendRequest)
                         throws ProcessingException,
                                ConfigurationException,
                                IOException
Send the request to the IDP

Parameters:
destination - idp url
samlDocument - request or response document
relayState -
response -
willSendRequest - are we sending Request or Response to IDP
Throws:
ProcessingException
ConfigurationException
IOException

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.