Audience audience = new AudienceBuilder().buildObject();
audience.setAudienceURI(authReqDTO.getIssuer());
AudienceRestriction audienceRestriction = new AudienceRestrictionBuilder().buildObject();
audienceRestriction.getAudiences().add(audience);
Conditions conditions = new ConditionsBuilder().buildObject();
conditions.setNotBefore(currentTime);
conditions.setNotOnOrAfter(notOnOrAfter);
conditions.getAudienceRestrictions().add(audienceRestriction);
samlAssertion.setConditions(conditions);