use of org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder in project cas by apereo.
the class SamlResponseArtifactEncoder method finalizeEncode.
@Override
protected void finalizeEncode(final BaseSAML2MessageEncoder e, final Response samlResponse, final String relayState) throws Exception {
final HTTPArtifactEncoder encoder = (HTTPArtifactEncoder) e;
encoder.setArtifactMap(this.samlArtifactMap);
final MessageContext ctx = getEncoderMessageContext(samlResponse, relayState);
prepareArtifactContext(samlResponse, ctx);
encoder.setMessageContext(ctx);
super.finalizeEncode(encoder, samlResponse, relayState);
}
use of org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder 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.HTTPArtifactEncoder 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.HTTPArtifactEncoder 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