use of org.opensaml.saml.saml2.core.impl.ExtensionsBuilder in project verify-hub by alphagov.
the class AuthnRequestFromRelyingPartyUnmarshallerTest method createApplicationVersionExtensions.
private Extensions createApplicationVersionExtensions(String version) throws Exception {
Extensions extensions = new ExtensionsBuilder().buildObject();
Attribute versionsAttribute = new AttributeBuilder().buildObject();
versionsAttribute.setName("Versions");
versionsAttribute.getAttributeValues().add(createApplicationVersion(version));
extensions.getUnknownXMLObjects().add(encrypter.encrypt(versionsAttribute));
return extensions;
}
Aggregations