Class AttributeConsumingServiceBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AttributeConsumingService>
se.swedenconnect.opensaml.saml2.metadata.build.AttributeConsumingServiceBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AttributeConsumingService>
public class AttributeConsumingServiceBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AttributeConsumingService>
Builder for
md:AttributeConsumingService
elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Utility method that creates a builder.descriptions
(List<LocalizedString> descriptions) Assigns the descriptions.descriptions
(LocalizedString... descriptions) protected Class
<org.opensaml.saml.saml2.metadata.AttributeConsumingService> Returns the object type.Assigns theIndex
attribute.Sets theisDefault
attribute of the service.requestedAttributes
(List<org.opensaml.saml.saml2.metadata.RequestedAttribute> attributes) Assigns themd:RequestedAttribute
elements.requestedAttributes
(org.opensaml.saml.saml2.metadata.RequestedAttribute... attributes) serviceNames
(List<LocalizedString> names) Assigns the service names.serviceNames
(LocalizedString... names) Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
AttributeConsumingServiceBuilder
public AttributeConsumingServiceBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
index
Assigns theIndex
attribute.- Parameters:
index
- the index- Returns:
- the builder
-
isDefault
Sets theisDefault
attribute of the service.- Parameters:
flag
- the Boolean- Returns:
- the builder
-
serviceNames
Assigns the service names.- Parameters:
names
- the service names- Returns:
- the builder.
-
serviceNames
- Parameters:
names
- the service names- Returns:
- the builder.
- See Also:
-
descriptions
Assigns the descriptions.- Parameters:
descriptions
- the descriptions- Returns:
- the builder
-
descriptions
- Parameters:
descriptions
- the descriptions- Returns:
- the builder
- See Also:
-
requestedAttributes
public AttributeConsumingServiceBuilder requestedAttributes(List<org.opensaml.saml.saml2.metadata.RequestedAttribute> attributes) Assigns themd:RequestedAttribute
elements.- Parameters:
attributes
- the requested attributes- Returns:
- the builder
-
requestedAttributes
public AttributeConsumingServiceBuilder requestedAttributes(org.opensaml.saml.saml2.metadata.RequestedAttribute... attributes) - Parameters:
attributes
- the requested attributes- Returns:
- the builder
- See Also:
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AttributeConsumingService>
- Returns:
- the object type
-