Search in sources :

Example 1 with HTTPArtifactEncoder

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);
}
Also used : MessageContext(org.opensaml.messaging.context.MessageContext) HTTPArtifactEncoder(org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder)

Example 2 with HTTPArtifactEncoder

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;
}
Also used : HTTPArtifactEncoder(org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder)

Example 3 with HTTPArtifactEncoder

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);
}
Also used : lombok.val(lombok.val) HTTPArtifactEncoder(org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder)

Example 4 with HTTPArtifactEncoder

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;
}
Also used : lombok.val(lombok.val) HTTPArtifactEncoder(org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder)

Aggregations

HTTPArtifactEncoder (org.opensaml.saml.saml2.binding.encoding.impl.HTTPArtifactEncoder)4 lombok.val (lombok.val)2 MessageContext (org.opensaml.messaging.context.MessageContext)1