protected void buildSamlResponse ( final HttpServletResponse response , final HttpServletRequest request , final Pair < AuthnRequest , MessageContext > authenticationContext , final Assertion casAssertion , final String binding ) { val authnRequest = authenticationContext . getKey ( ) ; val pair = getRegisteredServiceAndFacade ( authnRequest ) ; val entityId = pair . getValue ( ) . getEntityId ( ) ; LOGGER . debug ( "Preparing SAML response for [{}]" , entityId ) ; samlProfileHandlerConfigurationContext . getResponseBuilder ( ) . build ( authnRequest , request , response , casAssertion , pair . getKey ( ) , pair . getValue ( ) , binding , authenticationContext . getValue ( ) ) ; LOGGER . info ( "Built the SAML response for [{}]" , entityId ) ; }
Build saml response .