Search in sources :

Example 6 with BaseSAML2MessageEncoder

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

Example 7 with BaseSAML2MessageEncoder

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

Example 8 with BaseSAML2MessageEncoder

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

Example 9 with BaseSAML2MessageEncoder

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

Aggregations

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