use of org.opensaml.saml2.core.impl.AudienceRestrictionBuilder in project MaxKey by dromara.
the class ConditionsGenerator method builderAudienceRestriction.
public AudienceRestriction builderAudienceRestriction(String audienceUrl) {
AudienceRestriction audienceRestriction = new AudienceRestrictionBuilder().buildObject();
Audience audience = new AudienceBuilder().buildObject();
audience.setAudienceURI(audienceUrl);
audienceRestriction.getAudiences().add(audience);
logger.debug("Audience URL " + audienceUrl);
return audienceRestriction;
}
Aggregations