Class ScopingBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>
se.swedenconnect.opensaml.saml2.core.build.ScopingBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>
Builder class for
Scoping
elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScopingBuilder
builder()
Utility method that creates a builder.protected Class
<org.opensaml.saml.saml2.core.Scoping> Returns the object type.static org.opensaml.saml.saml2.core.IDPEntry
Creates anIDPEntry
element.Adds theIDPList
element.proxyCount
(Integer count) Assigns theProxyCount
attribute.requesterIDs
(String... ids) SeerequesterIDs(List)
.requesterIDs
(List<String> ids) AssignsRequesterID
elements.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
ScopingBuilder
public ScopingBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
proxyCount
Assigns theProxyCount
attribute.- Parameters:
count
- the proxy count- Returns:
- the builder
-
idpList
public ScopingBuilder idpList(String completeUri, List<org.opensaml.saml.saml2.core.IDPEntry> idpEntries) Adds theIDPList
element.- Parameters:
completeUri
- the GetComplete element of the IDPList element (may be null)idpEntries
- the IDPEntry elements of the IDPList element- Returns:
- the builder
-
idpList
public ScopingBuilder idpList(String completeUri, org.opensaml.saml.saml2.core.IDPEntry... idpEntries) - Parameters:
completeUri
- the GetComplete element of the IDPList element (may be null)idpEntries
- the IDPEntry elements of the IDPList element- Returns:
- the builder
-
idpEntry
public static org.opensaml.saml.saml2.core.IDPEntry idpEntry(String providerID, String name, String loc) Creates anIDPEntry
element.- Parameters:
providerID
- the ProviderID attributename
- the Name attributeloc
- the Loc attribute- Returns:
- an IDPEntry element
-
requesterIDs
AssignsRequesterID
elements.- Parameters:
ids
- the RequesterID elements to add- Returns:
- the builder
-
requesterIDs
SeerequesterIDs(List)
.- Parameters:
ids
- the RequesterID elements to add- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.Scoping>
- Returns:
- the object type
-