code: public void encodeSamlResponse(final Response samlResponse, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
          this.samlObjectBuilder.encodeSamlResponse(response, request, samlResponse);
      }
docs: Encode saml response.
  
  @param samlResponse the saml response
  @param request      the request
  @param response     the response
  @throws Exception the exception