Class NameIDImplWithoutSPNameQualifier

  • All Implemented Interfaces:
    NameID, NameIDType, Serializable

    public class NameIDImplWithoutSPNameQualifier
    extends NameIDImpl
    implements NameID
    The NameID is used in various SAML assertion constructs such as Subject and SubjectConfirmation elements, and in various protocol messages.
    See Also:
    Serialized Form
    • Constructor Detail

      • NameIDImplWithoutSPNameQualifier

        public NameIDImplWithoutSPNameQualifier()
        Default constructor
      • NameIDImplWithoutSPNameQualifier

        public NameIDImplWithoutSPNameQualifier​(String xml)
                                         throws SAML2Exception
        This constructor is used to build NameID object from a XML string.
        Parameters:
        xml - A java.lang.String representing a NameID object
        Throws:
        SAML2Exception - if it could not process the XML string
      • NameIDImplWithoutSPNameQualifier

        public NameIDImplWithoutSPNameQualifier​(Element element)
                                         throws SAML2Exception
        This constructor is used to build NameID object from a block of existing XML that has already been built into a DOM.
        Parameters:
        element - A org.w3c.dom.Element representing DOM tree for NameID object
        Throws:
        SAML2Exception - if it could not process the Element
    • Method Detail

      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Description copied from class: NameIDImpl
        Returns a String representation
        Specified by:
        toXMLString in interface NameIDType
        Overrides:
        toXMLString in class NameIDImpl
        Parameters:
        includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether or not the namespace is declared within the Element.
        Returns:
        A String representation
        Throws:
        SAML2Exception - if something is wrong during conversion