Class IDPSSODescriptorBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<IDPSSODescriptor>
se.swedenconnect.opensaml.saml2.metadata.build.AbstractSSODescriptorBuilder<IDPSSODescriptor,IDPSSODescriptorBuilder>
 
se.swedenconnect.opensaml.saml2.metadata.build.IDPSSODescriptorBuilder
- All Implemented Interfaces:
- SAMLObjectBuilder<IDPSSODescriptor>
public class IDPSSODescriptorBuilder
extends AbstractSSODescriptorBuilder<IDPSSODescriptor,IDPSSODescriptorBuilder> 
Builder for 
IDPSSODescriptor objects.- Author:
- Martin Lindström (martin@idsec.se)
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.IDPSSODescriptorBuilder(IDPSSODescriptor template, boolean clone) Constructor setting up the builder with a template object.
- 
Method SummaryModifier and TypeMethodDescriptionattributes(List<Attribute> attributes) AddsAttributeelements to theIDPSSODescriptor.attributes(Attribute... attributes) Seeattributes(List).static IDPSSODescriptorBuilderbuilder()Utility method that creates aIDPSSODescriptorBuilderinstance.protected Class<IDPSSODescriptor> Returns the object type.protected IDPSSODescriptorBuildergetThis()In order for us to be able to make chaining calls we need to return the concrete type of the builder.singleSignOnServices(List<SingleSignOnService> singleSignOnServices) Addsmd:SingleSignOnServiceelements to theIDPSSODescriptor.singleSignOnServices(SingleSignOnService... singleSignOnServices) Assigns theWantAuthnRequestsSignedattribute of themd:IDPSSODescriptorelement.Methods inherited from class se.swedenconnect.opensaml.saml2.metadata.build.AbstractSSODescriptorBuilderextensions, getExtensionsBuilder, keyDescriptors, keyDescriptors, nameIDFormats, nameIDFormats, singleLogoutServices, singleLogoutServicesMethods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilderbuild, getDefaultElementName, object
- 
Constructor Details- 
IDPSSODescriptorBuilderpublic IDPSSODescriptorBuilder()Default constructor.
- 
IDPSSODescriptorBuilderConstructor setting up the builder with a template object. Users of the instance may now change, add or delete, the elements and attributes of the template object using the assignment methods of the builder.The cloneparameter tells whether the object should be cloned or not. If set totrue, any modifications will have no effect on the passed object.- Parameters:
- template- the template object
- clone- whether the template object should be cloned
 
 
- 
- 
Method Details- 
builderUtility method that creates aIDPSSODescriptorBuilderinstance.- Returns:
- a IDPSSODescriptorBuilder instance
 
- 
wantAuthnRequestsSignedAssigns theWantAuthnRequestsSignedattribute of themd:IDPSSODescriptorelement.- Parameters:
- b- boolean
- Returns:
- the builder
 
- 
singleSignOnServicesAddsmd:SingleSignOnServiceelements to theIDPSSODescriptor.- Parameters:
- singleSignOnServices- single sign on service objects (cloned before assignment)
- Returns:
- the builder
 
- 
singleSignOnServices- Parameters:
- singleSignOnServices- single sign on service objects (cloned before assignment)
- Returns:
- the builder
 
- 
attributesAddsAttributeelements to theIDPSSODescriptor.- Parameters:
- attributes- the attributes to add
- Returns:
- the builder
 
- 
attributesSeeattributes(List).- Parameters:
- attributes- the attributes to add
- Returns:
- the builder
 
- 
getThisIn order for us to be able to make chaining calls we need to return the concrete type of the builder.- Specified by:
- getThisin class- AbstractSSODescriptorBuilder<IDPSSODescriptor,- IDPSSODescriptorBuilder> 
- Returns:
- the concrete type of the builder
 
- 
getObjectTypeReturns the object type.- Specified by:
- getObjectTypein class- AbstractSAMLObjectBuilder<IDPSSODescriptor>
- Returns:
- the object type
 
 
-