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 Details

    • NameIDPolicyBuilder

      public NameIDPolicyBuilder()
  • Method Details

    • builder

      public static NameIDPolicyBuilder builder()
      Utility method that creates a builder.
      Returns:
      a builder
    • format

      public NameIDPolicyBuilder format(String format)
      Assigns the Format attribute to the NameIDPolicy element.
      Parameters:
      format - the format URI
      Returns:
      the builder
    • spNameQualifier

      public NameIDPolicyBuilder spNameQualifier(String spNameQualifier)
      Assigns the SPNameQualifier attribute to the NameIDPolicy element.
      Parameters:
      spNameQualifier - the SP name qualifier
      Returns:
      the builder
    • allowCreate

      public NameIDPolicyBuilder allowCreate(Boolean allowCreate)
      Assigns the AllowCreate attribute to the NameIDPolicy element.
      Parameters:
      allowCreate - boolean flag
      Returns:
      the builder
    • getObjectType

      protected Class<org.opensaml.saml.saml2.core.NameIDPolicy> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.NameIDPolicy>
      Returns:
      the object type