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 Summary
ConstructorsConstructorDescriptionDefault constructor.IDPSSODescriptorBuilder(IDPSSODescriptor template, boolean clone) Constructor setting up the builder with a template object. -
Method Summary
Modifier 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.AbstractSSODescriptorBuilder
extensions, getExtensionsBuilder, keyDescriptors, keyDescriptors, nameIDFormats, nameIDFormats, singleLogoutServices, singleLogoutServicesMethods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
IDPSSODescriptorBuilder
public IDPSSODescriptorBuilder()Default constructor. -
IDPSSODescriptorBuilder
Constructor 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 objectclone- whether the template object should be cloned
-
-
Method Details
-
builder
Utility method that creates aIDPSSODescriptorBuilderinstance.- Returns:
- a IDPSSODescriptorBuilder instance
-
wantAuthnRequestsSigned
Assigns theWantAuthnRequestsSignedattribute of themd:IDPSSODescriptorelement.- Parameters:
b- boolean- Returns:
- the builder
-
singleSignOnServices
Addsmd: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
-
attributes
AddsAttributeelements to theIDPSSODescriptor.- Parameters:
attributes- the attributes to add- Returns:
- the builder
-
attributes
Seeattributes(List).- Parameters:
attributes- the attributes to add- Returns:
- the builder
-
getThis
In order for us to be able to make chaining calls we need to return the concrete type of the builder.- Specified by:
getThisin classAbstractSSODescriptorBuilder<IDPSSODescriptor,IDPSSODescriptorBuilder> - Returns:
- the concrete type of the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<IDPSSODescriptor>- Returns:
- the object type
-