}
}
protected void redirectToIdp(HttpServletRequest request, HttpServletResponse response)
throws IOException, WebTrustAssociationFailedException {
FederationProcessor processor = new FederationProcessorImpl();
String contextName = request.getContextPath();
if (contextName == null || contextName.isEmpty()) {
contextName = "/";
}
FederationContext fedCtx = getFederationContext(request);
String redirectURL = null;
StringBuilder sb = new StringBuilder();
try {
redirectURL = processor.createSignInRequest(request, fedCtx);
if (redirectURL != null) {
sb.append(redirectURL);
}
request.getQueryString();