question: @ RequestMapping ( value = "/SAML2/SSOSSL/{tenant:.*}" , method = { RequestMethod . GET , RequestMethod . POST } ) public void ssoSSLDummy ( Locale locale , Model model , @ PathVariable ( value = "tenant" ) String tenant , HttpServletRequest request , HttpServletResponse response ) throws IOException { logger . info ( "Welcome to ssoSSLDummy handler! " + tenant ) ; try { RelyingParty rp = validateRelyingParty ( request , tenant ) ; if ( rp != null ) { logger . info ( "Send ssl probing reponse for: " + rp . getUrl ( ) ) ; URL rpUrl = new URL ( rp . getUrl ( ) ) ; URL redirectUrl = new URL ( rpUrl . getProtocol ( ) , rpUrl . getHost ( ) , rpUrl . getPort ( ) , "/vsphere-client/" ) ; String redirectUrlStr = redirectUrl . toString ( ) + "?" + ssoSSLDummyQueryString ( request ) ; response . sendRedirect ( redirectUrlStr ) ; } else { logger . error ( "Not able to respond to the request posted to /SAML2/SSOSSL/" + tenant + ": No replying party was found to match the given query parameter!" ) ; sendError ( locale , response , "Not able to respond to the request posted to /SAML2/SSOSSL/" ) ; } } catch ( Exception e ) { logger . error ( "Caught exception in ssoSSLDummy" , e ) ; sendError ( locale , response , e . getLocalizedMessage ( ) ) ; } }
target:  Handle SSL for NGC. NGC is to host login page from iFrame which would fails silently if the server site is not trusted by browser. This interactive exchange allow user to trust the ssl at the first time browsing this site.