Class EntityAttributesBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<EntityAttributes>
se.swedenconnect.opensaml.saml2.metadata.build.EntityAttributesBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<EntityAttributes>
A builder for
EntityAttributes objects.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassuranceCertificationAttribute(String... uris) Adds an "urn:oasis:names:tc:SAML:attribute:assurance-certification" attribute containing the supplied URIs as attribute values.Adds an attribute to thismdattr:EntityAttributes.attributes(List<Attribute> attributes) Creates (or replaces) themdattr:EntityAttributeselement and adds the supplied attributes.static EntityAttributesBuilderbuilder()Creates a builder instance.entityCategoriesAttribute(String... uris) entityCategoriesAttribute(List<String> uris) Adds an "http://macedir.org/entity-category" attribute containing the supplied URIs as attribute values.protected Class<EntityAttributes> Returns the object type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
EntityAttributesBuilder
public EntityAttributesBuilder()Default constructor.
-
-
Method Details
-
builder
Creates a builder instance.- Returns:
- a builder instance
-
attributes
Creates (or replaces) themdattr:EntityAttributeselement and adds the supplied attributes.If
nullis supplied, the attributes are cleared.- Parameters:
attributes- the attributes to add to the entity attributes object- Returns:
- the builder
-
attribute
Adds an attribute to thismdattr:EntityAttributes.- Parameters:
attribute- the attribute to add- Returns:
- the builder
-
assuranceCertificationAttribute
Adds an "urn:oasis:names:tc:SAML:attribute:assurance-certification" attribute containing the supplied URIs as attribute values.If the attribute already exists its value will be updated.
If
nullis supplied an already existing attribute is removed.- Parameters:
uris- the assurance URI values that should be added- Returns:
- the builder
-
assuranceCertificationAttribute
- Parameters:
uris- the assurance URI values that should be added- Returns:
- the builder
-
entityCategoriesAttribute
Adds an "http://macedir.org/entity-category" attribute containing the supplied URIs as attribute values.If the attribute already exists its value will be updated.
If
nullis supplied an already existing attribute is removed.- Parameters:
uris- the entity category URI values that should be added- Returns:
- the builder
-
entityCategoriesAttribute
- Parameters:
uris- the entity category URI values that should be added- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<EntityAttributes>- Returns:
- the object type
-