public Assertion newAssertion(final AuthenticationStatement authnStatement, final String issuer,
                                  final ZonedDateTime issuedAt, final String id) {
        val assertion = SamlUtils.newSamlObject(Assertion.class);

        assertion.setID(id);
        assertion.setIssueInstant(issuedAt.toInstant());
        assertion.setIssuer(issuer);
        assertion.getAuthenticationStatements().add(authnStatement);
        return assertion;
    }
Create a new SAML1 response object.

@param authnStatement the authn statement
@param issuer         the issuer
@param issuedAt       the issued at
@param id             the id
@return the assertion
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java