Class RequestedAttributeBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<RequestedAttribute>
se.swedenconnect.opensaml.saml2.metadata.build.RequestedAttributeBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<RequestedAttribute>
Builder for
md:RequestedAttribute elements.
It is valid to add a value to a requested attribute but this rarely happens so this builder does not support that.
- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor setting the attribute name. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedAttributeBuilderCreates a builder.friendlyName(String friendlyName) Assigns the attribute friendly name.protected Class<RequestedAttribute> Returns the object type.isRequired(Boolean required) Assigns theisRequiredattribute value.nameFormat(String nameFormat) Assigns the attribute name format.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
RequestedAttributeBuilder
Constructor setting the attribute name.- Parameters:
name- the attribute name
-
-
Method Details
-
builder
Creates a builder.- Parameters:
name- the attribute name- Returns:
- a builder
-
friendlyName
Assigns the attribute friendly name.- Parameters:
friendlyName- the friendly name- Returns:
- the builder
-
nameFormat
Assigns the attribute name format.- Parameters:
nameFormat- the name format URI- Returns:
- the builder
-
isRequired
Assigns theisRequiredattribute value.- Parameters:
required- flag- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<RequestedAttribute>- Returns:
- the object type
-