code: protected Assertion buildSamlAssertion(final RequestAbstractType authnRequest,
                                             final HttpServletRequest request,
                                             final HttpServletResponse response,
                                             final Object casAssertion,
                                             final SamlRegisteredService service,
                                             final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                             final String binding,
                                             final MessageContext messageContext) {
          return samlResponseBuilderConfigurationContext.getSamlProfileSamlAssertionBuilder()
              .build(authnRequest, request, response, casAssertion, service, adaptor, binding, messageContext);
      }
docs: Build saml assertion assertion.
  
  @param authnRequest   the authn request
  @param request        the request
  @param response       the response
  @param casAssertion   the cas assertion
  @param service        the service
  @param adaptor        the adaptor
  @param binding        the binding
  @param messageContext the message context
  @return the assertion