Search in sources :

Example 1 with ExtensionsBuilder

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;
}
Also used : AttributeBuilder(org.opensaml.saml.saml2.core.impl.AttributeBuilder) Attribute(org.opensaml.saml.saml2.core.Attribute) ExtensionsBuilder(org.opensaml.saml.saml2.core.impl.ExtensionsBuilder) Extensions(org.opensaml.saml.saml2.core.Extensions)

Aggregations

Attribute (org.opensaml.saml.saml2.core.Attribute)1 Extensions (org.opensaml.saml.saml2.core.Extensions)1 AttributeBuilder (org.opensaml.saml.saml2.core.impl.AttributeBuilder)1 ExtensionsBuilder (org.opensaml.saml.saml2.core.impl.ExtensionsBuilder)1