code: public String getRedirectUrl() throws XMLStreamException, IOException {
  		String url = this.settings.getIdpSsoTargetUrl();
  		url += "?SAMLRequest=";
  
  		url += URLEncoder.encode(this.getXmlBase64Request(), "UTF-8");
  
  		if (this.parameters != null) {
  			for (Map.Entry<String, String> param : this.parameters.entrySet()) {
  				String key = URLEncoder.encode(param.getKey(), "UTF-8");
  				String val = URLEncoder.encode(param.getValue(), "UTF-8");
  				url += "&" + key + "=" + val;
  			}
  		}
  
  		return url;
  	}
docs: Return the full IDP redirect url with encoded SAML request
  
  @return String SAML request url
  @throws XMLStreamException
  @throws IOException