Class ScopeBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.core.xml.XMLObject>
se.swedenconnect.opensaml.saml2.metadata.build.ScopeBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.core.xml.XMLObject>
Builder for
Scope
elements.
Since this class is also defined in Shibboleth's idp-saml-api and idp-saml-impl libraries we create only a
SAMLObject
and depending on if the user has Shibboleth in the classpath an object of the
net.shibboleth.idp.saml.xmlobject.Scope
or se.swedenconnect.opensaml.saml2.metadata.scope.Scope
is
created.
- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Builds and casts to the correct Scope type.static ScopeBuilder
builder()
Creates a newScopeBuilder
instance.protected QName
Gets the default element name for the object.protected Class
<org.opensaml.core.xml.XMLObject> Returns the object type.Assigns theregexp
attribute.Assigns the value.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, object
-
Constructor Details
-
ScopeBuilder
public ScopeBuilder()
-
-
Method Details
-
builder
Creates a newScopeBuilder
instance.- Returns:
- a ScopeBuilder instance
-
regexp
Assigns theregexp
attribute.- Parameters:
regexp
- the regexp attribute- Returns:
- the builder
-
value
Assigns the value.- Parameters:
value
- the value- Returns:
- the builder
-
build
Builds and casts to the correct Scope type.- Type Parameters:
T
- the Scope type to cast to- Parameters:
clazz
- the Scope type to cast to- Returns:
- a Scope object
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.core.xml.XMLObject>
- Returns:
- the object type
-
getDefaultElementName
Gets the default element name for the object.- Overrides:
getDefaultElementName
in classAbstractSAMLObjectBuilder<org.opensaml.core.xml.XMLObject>
- Returns:
- a QName
-