Class SubjectBuilder

All Implemented Interfaces:
XMLObjectBuilder<Subject>, SAMLObjectBuilder<Subject>

public class SubjectBuilder extends AbstractSAMLObjectBuilder<Subject>
Builder for Subject objects.
  • Constructor Details

    • SubjectBuilder

      public SubjectBuilder()
  • Method Details

    • buildObject

      @Nonnull public Subject buildObject()
      Builds a SAMLObject using the default name and namespace information provided SAML specifications.
      Specified by:
      buildObject in interface SAMLObjectBuilder<Subject>
      Specified by:
      buildObject in class AbstractSAMLObjectBuilder<Subject>
      Returns:
      built SAMLObject
    • buildObject

      @Nonnull public Subject buildObject(@Nullable String namespaceURI, @Nonnull String localName, @Nullable String namespacePrefix)
      Creates an XMLObject with a given fully qualified name.
      Specified by:
      buildObject in interface XMLObjectBuilder<Subject>
      Specified by:
      buildObject in class AbstractXMLObjectBuilder<Subject>
      Parameters:
      namespaceURI - the URI of the namespace the Element represented by this XMLObject will be in
      localName - the local name of the Element represented by this XMLObject
      namespacePrefix - the namespace prefix of the Element represented by this XMLObject
      Returns:
      the constructed XMLObject