use of org.opensaml.saml.saml2.binding.encoding.impl.BaseSAML2MessageEncoder in project cas by apereo.
the class SamlResponseArtifactEncoder method getMessageEncoderInstance.
@Override
protected BaseSAML2MessageEncoder getMessageEncoderInstance() throws Exception {
final HTTPArtifactEncoder encoder = new HTTPArtifactEncoder();
encoder.setVelocityEngine(this.velocityEngineFactory);
return encoder;
}
use of org.opensaml.saml.saml2.binding.encoding.impl.BaseSAML2MessageEncoder in project cas by apereo.
the class SamlResponsePostEncoder method getMessageEncoderInstance.
@Override
protected BaseSAML2MessageEncoder getMessageEncoderInstance() throws Exception {
final HTTPPostEncoder encoder = new HTTPPostEncoder();
encoder.setVelocityEngine(this.velocityEngineFactory);
return encoder;
}
use of org.opensaml.saml.saml2.binding.encoding.impl.BaseSAML2MessageEncoder in project cas by apereo.
the class SamlResponseArtifactEncoder method finalizeEncode.
@Override
protected void finalizeEncode(final RequestAbstractType authnRequest, final BaseSAML2MessageEncoder e, final Response samlResponse, final String relayState, final MessageContext messageContext) {
val encoder = (HTTPArtifactEncoder) e;
encoder.setArtifactMap(this.samlArtifactMap);
val ctx = getEncoderMessageContext(authnRequest, samlResponse, relayState, messageContext);
prepareArtifactContext(samlResponse, ctx);
encoder.setMessageContext(ctx);
super.finalizeEncode(authnRequest, encoder, samlResponse, relayState, messageContext);
}
use of org.opensaml.saml.saml2.binding.encoding.impl.BaseSAML2MessageEncoder in project cas by apereo.
the class SamlResponseArtifactEncoder method getMessageEncoderInstance.
@Override
protected BaseSAML2MessageEncoder getMessageEncoderInstance() {
val encoder = new HTTPArtifactEncoder();
encoder.setVelocityEngine(this.velocityEngineFactory);
return encoder;
}
Aggregations