Class RequestedAttributeBuilder

java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>
se.swedenconnect.opensaml.saml2.metadata.build.RequestedAttributeBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>

public class RequestedAttributeBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.RequestedAttribute>
Builder for md:RequestedAttribute elements.

It is valid to add a value to a requested attribute but this rarely happens so this builder does not support that.

Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • RequestedAttributeBuilder

      public RequestedAttributeBuilder(String name)
      Constructor setting the attribute name.
      Parameters:
      name - the attribute name
  • Method Details

    • builder

      public static RequestedAttributeBuilder builder(String name)
      Creates a builder.
      Parameters:
      name - the attribute name
      Returns:
      a builder
    • friendlyName

      public RequestedAttributeBuilder friendlyName(String friendlyName)
      Assigns the attribute friendly name.
      Parameters:
      friendlyName - the friendly name
      Returns:
      the builder
    • nameFormat

      public RequestedAttributeBuilder nameFormat(String nameFormat)
      Assigns the attribute name format.
      Parameters:
      nameFormat - the name format URI
      Returns:
      the builder
    • isRequired

      public RequestedAttributeBuilder isRequired(Boolean required)
      Assigns the isRequired attribute value.
      Parameters:
      required - flag
      Returns:
      the builder
    • getObjectType

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