public Assertion newAssertion(final List<Statement> authnStatement, final String issuer,
                                  final ZonedDateTime issuedAt, final String id) {
        val assertion = newSamlObject(Assertion.class);
        assertion.setID(id);
        assertion.setIssueInstant(DateTimeUtils.dateTimeOf(issuedAt));
        assertion.setIssuer(newIssuer(issuer));
        assertion.getStatements().addAll(authnStatement);
        return assertion;
    }
public Assertion newAssertion ( final List < Statement > authnStatement , final String issuer , final ZonedDateTime issuedAt , final String id ) { val assertion = newSamlObject ( Assertion . class ) ; assertion . setID ( id ) ; assertion . setIssueInstant ( DateTimeUtils . dateTimeOf ( issuedAt ) ) ; assertion . setIssuer ( newIssuer ( issuer ) ) ; assertion . getStatements ( ) . addAll ( 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