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