PicketLink Federation Core 2.1.6.Final-redhat-2

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

java.lang.Object
  extended by org.picketlink.identity.federation.web.process.ServiceProviderBaseProcessor
Direct Known Subclasses:
ServiceProviderSAMLRequestProcessor, ServiceProviderSAMLResponseProcessor

public class ServiceProviderBaseProcessor
extends Object

A processor util at the SP

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

Field Summary
protected  PicketLinkAuditHelper auditHelper
           
protected  String identityURL
           
static String IDP_KEY
           
protected  String issuer
           
protected  TrustKeyManager keyManager
           
protected static PicketLinkLogger logger
           
protected  boolean postBinding
           
protected  String serviceURL
           
protected  ProviderType spConfiguration
           
 
Constructor Summary
ServiceProviderBaseProcessor(boolean postBinding, String serviceURL)
          Construct
 
Method Summary
protected  PublicKey getIDPPublicKey()
           Returns the PublicKey to be used to verify signatures for SAML tokens issued by the IDP.
protected  SAML2HandlerRequest getSAML2HandlerRequest(SAMLDocumentHolder documentHolder, HTTPContext httpContext)
           
protected  boolean isLogOutRequest(HTTPContext httpContext)
           
 SAML2HandlerResponse process(HTTPContext httpContext, Set<SAML2Handler> handlers, Lock chainLock)
           
protected  URL safeURL(String urlString)
           
 void setAuditHelper(PicketLinkAuditHelper helper)
          Set the PicketLinkAuditHelper
 void setConfiguration(ProviderType sp)
          Set the SP configuration
 void setIdentityURL(String identityURL)
          Set the Identity URL
 void setIssuer(String issuer)
          Set a separate issuer that is different from the service url
protected  void setRequestOptions(SAML2HandlerRequest saml2HandlerRequest)
           
 void setTrustKeyManager(TrustKeyManager tkm)
          Set the TrustKeyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final PicketLinkLogger logger

postBinding

protected boolean postBinding

serviceURL

protected String serviceURL

identityURL

protected String identityURL

spConfiguration

protected ProviderType spConfiguration

keyManager

protected TrustKeyManager keyManager

issuer

protected String issuer

auditHelper

protected PicketLinkAuditHelper auditHelper

IDP_KEY

public static final String IDP_KEY
See Also:
Constant Field Values
Constructor Detail

ServiceProviderBaseProcessor

public ServiceProviderBaseProcessor(boolean postBinding,
                                    String serviceURL)
Construct

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

setConfiguration

public void setConfiguration(ProviderType sp)
Set the SP configuration

Parameters:
sp -

setTrustKeyManager

public void setTrustKeyManager(TrustKeyManager tkm)
Set the TrustKeyManager

Parameters:
tkm -

setIdentityURL

public void setIdentityURL(String identityURL)
Set the Identity URL

Parameters:
identityURL -

setIssuer

public void setIssuer(String issuer)
Set a separate issuer that is different from the service url

Parameters:
issuer -

setAuditHelper

public void setAuditHelper(PicketLinkAuditHelper helper)
Set the PicketLinkAuditHelper

Parameters:
helper -

process

public SAML2HandlerResponse process(HTTPContext httpContext,
                                    Set<SAML2Handler> handlers,
                                    Lock chainLock)
                             throws ProcessingException,
                                    IOException,
                                    ParsingException,
                                    ConfigurationException
Throws:
ProcessingException
IOException
ParsingException
ConfigurationException

getSAML2HandlerRequest

protected SAML2HandlerRequest getSAML2HandlerRequest(SAMLDocumentHolder documentHolder,
                                                     HTTPContext httpContext)

isLogOutRequest

protected boolean isLogOutRequest(HTTPContext httpContext)

safeURL

protected URL safeURL(String urlString)

getIDPPublicKey

protected PublicKey getIDPPublicKey()
                             throws TrustKeyConfigurationException,
                                    TrustKeyProcessingException

Returns the PublicKey to be used to verify signatures for SAML tokens issued by the IDP.

Returns:
Throws:
TrustKeyConfigurationException
TrustKeyProcessingException

setRequestOptions

protected void setRequestOptions(SAML2HandlerRequest saml2HandlerRequest)
                          throws TrustKeyConfigurationException,
                                 TrustKeyProcessingException
Throws:
TrustKeyConfigurationException
TrustKeyProcessingException

PicketLink Federation Core 2.1.6.Final-redhat-2

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