"Invalid inbound message transport type, this decoder only support HTTPInTransport");
}
SAMLMessageContext samlMsgCtx = (SAMLMessageContext) messageContext;
HTTPInTransport inTransport = (HTTPInTransport) samlMsgCtx.getInboundMessageTransport();
String relayState = inTransport.getParameterValue("RelayState");
samlMsgCtx.setRelayState(relayState);
log.debug("Decoded RelayState: {}", relayState);
InputStream samlMessageIns;
if (!DatatypeHelper.isEmpty(inTransport.getParameterValue("SAMLRequest"))) {
samlMessageIns = decodeMessage(inTransport.getParameterValue("SAMLRequest"));
} else if (!DatatypeHelper.isEmpty(inTransport.getParameterValue("SAMLResponse"))) {
samlMessageIns = decodeMessage(inTransport.getParameterValue("SAMLResponse"));
} else {
throw new MessageDecodingException(
"No SAMLRequest or SAMLResponse query path parameter, invalid SAML 2 HTTP Redirect message");
}