public class ServiceProviderBaseProcessor extends Object
Modifier and Type | Field and Description |
---|---|
protected PicketLinkAuditHelper |
auditHelper |
protected PicketLinkType |
configuration |
protected String |
identityURL |
static String |
IDP_KEY |
protected String |
issuer |
protected TrustKeyManager |
keyManager |
protected static PicketLinkLogger |
logger |
protected boolean |
postBinding |
protected String |
serviceURL |
Constructor and Description |
---|
ServiceProviderBaseProcessor(boolean postBinding,
String serviceURL,
PicketLinkType configuration) |
ServiceProviderBaseProcessor(boolean postBinding,
String serviceURL,
PicketLinkType configuration,
IDPSSODescriptorType idpMetadata)
Construct
|
Modifier and Type | Method and Description |
---|---|
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 ProviderType |
getSpConfiguration() |
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 |
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 |
protected static final PicketLinkLogger logger
protected final PicketLinkType configuration
protected boolean postBinding
protected String serviceURL
protected String identityURL
protected TrustKeyManager keyManager
protected String issuer
protected PicketLinkAuditHelper auditHelper
public static final String IDP_KEY
public ServiceProviderBaseProcessor(boolean postBinding, String serviceURL, PicketLinkType configuration, IDPSSODescriptorType idpMetadata)
postBinding
- Whether it is the Post BindingserviceURL
- Service URL of the SPpublic ServiceProviderBaseProcessor(boolean postBinding, String serviceURL, PicketLinkType configuration)
public void setTrustKeyManager(TrustKeyManager tkm)
TrustKeyManager
tkm
- public void setIdentityURL(String identityURL)
identityURL
- public void setIssuer(String issuer)
issuer
- public void setAuditHelper(PicketLinkAuditHelper helper)
PicketLinkAuditHelper
helper
- public SAML2HandlerResponse process(HTTPContext httpContext, Set<SAML2Handler> handlers, Lock chainLock) throws ProcessingException, IOException, ParsingException, ConfigurationException
protected ProviderType getSpConfiguration()
protected SAML2HandlerRequest getSAML2HandlerRequest(SAMLDocumentHolder documentHolder, HTTPContext httpContext)
protected boolean isLogOutRequest(HTTPContext httpContext)
protected PublicKey getIDPPublicKey() throws TrustKeyConfigurationException, TrustKeyProcessingException
Returns the PublicKey to be used to verify signatures for SAML tokens issued by the IDP.
org.picketlink.identity.federation.core.interfaces.TrustKeyConfigurationException
org.picketlink.identity.federation.core.interfaces.TrustKeyProcessingException
TrustKeyConfigurationException
TrustKeyProcessingException
protected void setRequestOptions(SAML2HandlerRequest saml2HandlerRequest) throws TrustKeyConfigurationException, TrustKeyProcessingException
Copyright © 2016 JBoss by Red Hat. All rights reserved.