Class RequestedAttributeBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>
se.swedenconnect.opensaml.saml2.metadata.build.RequestedAttributeBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>
public class RequestedAttributeBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.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
ConstructorDescriptionConstructor setting the attribute name. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedAttributeBuilder
Creates a builder.friendlyName
(String friendlyName) Assigns the attribute friendly name.protected Class
<org.opensaml.saml.saml2.metadata.RequestedAttribute> Returns the object type.isRequired
(Boolean required) Assigns theisRequired
attribute 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 theisRequired
attribute value.- Parameters:
required
- flag- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>
- Returns:
- the object type
-