public void encodeSamlResponse(final Response samlResponse, final HttpServletRequest request, final HttpServletResponse response)
        throws Exception {
        samlObjectBuilder.encodeSamlResponse(response, request, samlResponse);
    }
Encode saml response.

@param samlResponse the saml response
@param request      the request
@param response     the response
@throws Exception the exception
support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java