URLBuilder urlBuilder = getEndpointURL(artifactContext);
List<Pair<String, String>> params = urlBuilder.getQueryParams();
AbstractSAMLArtifact artifact = buildArtifact(artifactContext);
if(artifact == null){
log.error("Unable to build artifact for message to relying party");
throw new MessageEncodingException("Unable to builder artifact for message to relying party");
}
params.add(new Pair<String, String>("SAMLart", artifact.base64Encode()));
if (checkRelayState(artifactContext.getRelayState())) {
params.add(new Pair<String, String>("RelayState", artifactContext.getRelayState()));
}