Class AttributeConsumingServiceBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<AttributeConsumingService>
-
- se.litsec.opensaml.saml2.metadata.build.AttributeConsumingServiceBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<AttributeConsumingService>
public class AttributeConsumingServiceBuilder extends AbstractSAMLObjectBuilder<AttributeConsumingService>
Builder formd:AttributeConsumingServiceelements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description AttributeConsumingServiceBuilder()
-
Method Summary
-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static AttributeConsumingServiceBuilder builder()
Utility method that creates a builder.- Returns:
- a builder
-
index
public AttributeConsumingServiceBuilder index(Integer index)
Assigns theIndexattribute.- Parameters:
index- the index- Returns:
- the builder
-
isDefault
public AttributeConsumingServiceBuilder isDefault(Boolean flag)
Sets theisDefaultattribute of the service.- Parameters:
flag- the Boolean- Returns:
- the builder
-
serviceNames
public AttributeConsumingServiceBuilder serviceNames(List<LocalizedString> names)
Assigns the service names.- Parameters:
names- the service names- Returns:
- the builder.
-
serviceNames
public AttributeConsumingServiceBuilder serviceNames(LocalizedString... names)
- Parameters:
names- the service names- Returns:
- the builder.
- See Also:
serviceNames(List)
-
descriptions
public AttributeConsumingServiceBuilder descriptions(List<LocalizedString> descriptions)
Assigns the descriptions.- Parameters:
descriptions- the descriptions- Returns:
- the builder
-
descriptions
public AttributeConsumingServiceBuilder descriptions(LocalizedString... descriptions)
- Parameters:
descriptions- the descriptions- Returns:
- the builder
- See Also:
descriptions(List)
-
requestedAttributes
public AttributeConsumingServiceBuilder requestedAttributes(List<RequestedAttribute> attributes)
Assigns themd:RequestedAttributeelements.- Parameters:
attributes- the requested attributes- Returns:
- the builder
-
requestedAttributes
public AttributeConsumingServiceBuilder requestedAttributes(RequestedAttribute... attributes)
- Parameters:
attributes- the requested attributes- Returns:
- the builder
- See Also:
requestedAttributes(List)
-
getObjectType
protected Class<AttributeConsumingService> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<AttributeConsumingService>- Returns:
- the object type
-
-