use of org.pac4j.saml.sso.artifact.SAML2ArtifactBindingMessageReceiver in project pac4j by pac4j.
the class SAML2Client method initSAMLProfileHandler.
protected void initSAMLProfileHandler() {
final SAML2MessageReceiver messageReceiver;
if (configuration.getResponseBindingType().equals(SAMLConstants.SAML2_POST_BINDING_URI)) {
messageReceiver = new SAML2WebSSOMessageReceiver(this.authnResponseValidator, this.configuration);
} else if (configuration.getResponseBindingType().equals(SAMLConstants.SAML2_ARTIFACT_BINDING_URI)) {
messageReceiver = new SAML2ArtifactBindingMessageReceiver(this.authnResponseValidator, this.idpMetadataResolver, this.spMetadataResolver, this.soapPipelineProvider, this.configuration);
} else {
throw new TechnicalException("Unsupported response binding type: " + configuration.getResponseBindingType());
}
this.profileHandler = new SAML2WebSSOProfileHandler(new SAML2WebSSOMessageSender(this.signatureSigningParametersProvider, this.configuration.getAuthnRequestBindingType(), true, this.configuration.isAuthnRequestSigned()), messageReceiver);
}
Aggregations