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:RequestedAttributeelements.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 RequestedAttributeBuilderbuilder(String name)Creates a builder.RequestedAttributeBuilderfriendlyName(String friendlyName)Assigns the attribute friendly name.protected Class<RequestedAttribute>getObjectType()Returns the object type.RequestedAttributeBuilderisRequired(Boolean required)Assigns theisRequiredattribute value.RequestedAttributeBuildernameFormat(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 theisRequiredattribute value.- Parameters:
required- flag- Returns:
- the builder
-
getObjectType
protected Class<RequestedAttribute> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<RequestedAttribute>- Returns:
- the object type
-
-