Class IDPSSODescriptorBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor>
se.swedenconnect.opensaml.saml2.metadata.build.AbstractSSODescriptorBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor,IDPSSODescriptorBuilder>
se.swedenconnect.opensaml.saml2.metadata.build.IDPSSODescriptorBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor>
public class IDPSSODescriptorBuilder
extends AbstractSSODescriptorBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor,IDPSSODescriptorBuilder>
Builder for
IDPSSODescriptor
objects.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorDescriptionDefault constructor.IDPSSODescriptorBuilder
(org.opensaml.saml.saml2.metadata.IDPSSODescriptor template, boolean clone) Constructor setting up the builder with a template object. -
Method Summary
Modifier and TypeMethodDescriptionattributes
(List<org.opensaml.saml.saml2.core.Attribute> attributes) AddsAttribute
elements to theIDPSSODescriptor
.attributes
(org.opensaml.saml.saml2.core.Attribute... attributes) Seeattributes(List)
.static IDPSSODescriptorBuilder
builder()
Utility method that creates aIDPSSODescriptorBuilder
instance.protected Class
<org.opensaml.saml.saml2.metadata.IDPSSODescriptor> Returns the object type.protected IDPSSODescriptorBuilder
getThis()
In order for us to be able to make chaining calls we need to return the concrete type of the builder.singleSignOnServices
(List<org.opensaml.saml.saml2.metadata.SingleSignOnService> singleSignOnServices) Addsmd:SingleSignOnService
elements to theIDPSSODescriptor
.singleSignOnServices
(org.opensaml.saml.saml2.metadata.SingleSignOnService... singleSignOnServices) Assigns theWantAuthnRequestsSigned
attribute of themd:IDPSSODescriptor
element.Methods inherited from class se.swedenconnect.opensaml.saml2.metadata.build.AbstractSSODescriptorBuilder
extensions, getExtensionsBuilder, keyDescriptors, keyDescriptors, nameIDFormats, nameIDFormats, singleLogoutServices, singleLogoutServices
Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
IDPSSODescriptorBuilder
public IDPSSODescriptorBuilder()Default constructor. -
IDPSSODescriptorBuilder
public IDPSSODescriptorBuilder(org.opensaml.saml.saml2.metadata.IDPSSODescriptor template, boolean clone) 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
clone
parameter 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 aIDPSSODescriptorBuilder
instance.- Returns:
- a IDPSSODescriptorBuilder instance
-
wantAuthnRequestsSigned
Assigns theWantAuthnRequestsSigned
attribute of themd:IDPSSODescriptor
element.- Parameters:
b
- boolean- Returns:
- the builder
-
singleSignOnServices
public IDPSSODescriptorBuilder singleSignOnServices(List<org.opensaml.saml.saml2.metadata.SingleSignOnService> singleSignOnServices) Addsmd:SingleSignOnService
elements to theIDPSSODescriptor
.- Parameters:
singleSignOnServices
- single sign on service objects (cloned before assignment)- Returns:
- the builder
-
singleSignOnServices
public IDPSSODescriptorBuilder singleSignOnServices(org.opensaml.saml.saml2.metadata.SingleSignOnService... singleSignOnServices) - Parameters:
singleSignOnServices
- single sign on service objects (cloned before assignment)- Returns:
- the builder
-
attributes
AddsAttribute
elements 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:
getThis
in classAbstractSSODescriptorBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor,
IDPSSODescriptorBuilder> - Returns:
- the concrete type of the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.IDPSSODescriptor>
- Returns:
- the object type
-