Class NameIDPolicyBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.NameIDPolicy>
se.swedenconnect.opensaml.saml2.core.build.NameIDPolicyBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.NameIDPolicy>
public class NameIDPolicyBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.NameIDPolicy>
Builder class for
NameIDPolicy
elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowCreate
(Boolean allowCreate) Assigns theAllowCreate
attribute to theNameIDPolicy
element.static NameIDPolicyBuilder
builder()
Utility method that creates a builder.Assigns theFormat
attribute to theNameIDPolicy
element.protected Class
<org.opensaml.saml.saml2.core.NameIDPolicy> Returns the object type.spNameQualifier
(String spNameQualifier) Assigns theSPNameQualifier
attribute to theNameIDPolicy
element.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
NameIDPolicyBuilder
public NameIDPolicyBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
format
Assigns theFormat
attribute to theNameIDPolicy
element.- Parameters:
format
- the format URI- Returns:
- the builder
-
spNameQualifier
Assigns theSPNameQualifier
attribute to theNameIDPolicy
element.- Parameters:
spNameQualifier
- the SP name qualifier- Returns:
- the builder
-
allowCreate
Assigns theAllowCreate
attribute to theNameIDPolicy
element.- Parameters:
allowCreate
- boolean flag- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.NameIDPolicy>
- Returns:
- the object type
-