Class RequestedAttributeBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<RequestedAttribute>
-
- se.litsec.opensaml.saml2.metadata.build.RequestedAttributeBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<RequestedAttribute>
public class RequestedAttributeBuilder extends AbstractSAMLObjectBuilder<RequestedAttribute>
Builder formd: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.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description RequestedAttributeBuilder(String name)
Constructor setting the attribute name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestedAttributeBuilder
builder(String name)
Creates a builder.RequestedAttributeBuilder
friendlyName(String friendlyName)
Assigns the attribute friendly name.protected Class<RequestedAttribute>
getObjectType()
Returns the object type.RequestedAttributeBuilder
isRequired(Boolean required)
Assigns theisRequired
attribute value.RequestedAttributeBuilder
nameFormat(String nameFormat)
Assigns the attribute name format.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Constructor Detail
-
RequestedAttributeBuilder
public RequestedAttributeBuilder(String name)
Constructor setting the attribute name.- Parameters:
name
- the attribute name
-
-
Method Detail
-
builder
public static RequestedAttributeBuilder builder(String name)
Creates a builder.- Parameters:
name
- the attribute name- Returns:
- a builder
-
friendlyName
public RequestedAttributeBuilder friendlyName(String friendlyName)
Assigns the attribute friendly name.- Parameters:
friendlyName
- the friendly name- Returns:
- the builder
-
nameFormat
public RequestedAttributeBuilder nameFormat(String nameFormat)
Assigns the attribute name format.- Parameters:
nameFormat
- the name format URI- Returns:
- the builder
-
isRequired
public RequestedAttributeBuilder isRequired(Boolean required)
Assigns theisRequired
attribute value.- Parameters:
required
- flag- Returns:
- the builder
-
getObjectType
protected Class<RequestedAttribute> getObjectType()
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<RequestedAttribute>
- Returns:
- the object type
-
-