Class ScopingBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<Scoping>
-
- se.litsec.opensaml.saml2.core.build.ScopingBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<Scoping>
public class ScopingBuilder extends AbstractSAMLObjectBuilder<Scoping>
Builder class forScopingelements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description ScopingBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScopingBuilderbuilder()Utility method that creates a builder.protected Class<Scoping>getObjectType()Returns the object type.static IDPEntryidpEntry(String providerID, String name, String loc)Creates anIDPEntryelement.ScopingBuilderidpList(String completeUri, List<IDPEntry> idpEntries)Adds theIDPListelement.ScopingBuilderidpList(String completeUri, IDPEntry... idpEntries)ScopingBuilderproxyCount(Integer count)Assigns theProxyCountattribute.ScopingBuilderrequesterIDs(String... ids)ScopingBuilderrequesterIDs(List<String> ids)AssignsRequesterIDelements.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static ScopingBuilder builder()
Utility method that creates a builder.- Returns:
- a builder
-
proxyCount
public ScopingBuilder proxyCount(Integer count)
Assigns theProxyCountattribute.- Parameters:
count- the proxy count- Returns:
- the builder
-
idpList
public ScopingBuilder idpList(String completeUri, List<IDPEntry> idpEntries)
Adds theIDPListelement.- Parameters:
completeUri- theGetCompleteelement of theIDPListelement (may benull)idpEntries- theIDPEntryelements of theIDPListelement- Returns:
- the builder
-
idpList
public ScopingBuilder idpList(String completeUri, IDPEntry... idpEntries)
- Parameters:
completeUri- theGetCompleteelement of theIDPListelement (may benull)idpEntries- theIDPEntryelements of theIDPListelement- Returns:
- the builder
- See Also:
idpList(String, List)
-
idpEntry
public static IDPEntry idpEntry(String providerID, String name, String loc)
Creates anIDPEntryelement.- Parameters:
providerID- theProviderIDattributename- theNameattributeloc- theLocattribute- Returns:
- an
IDPEntryelement
-
requesterIDs
public ScopingBuilder requesterIDs(List<String> ids)
AssignsRequesterIDelements.- Parameters:
ids- theRequesterIDelements to add- Returns:
- the builder
-
requesterIDs
public ScopingBuilder requesterIDs(String... ids)
- Parameters:
ids- theRequesterIDelements to add- Returns:
- the builder
- See Also:
requesterIDs(List)
-
getObjectType
protected Class<Scoping> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<Scoping>- Returns:
- the object type
-
-