Class NameID

  • All Implemented Interfaces:
    NameID

    public class NameID
    extends NameIDType
    implements NameID
    The NameID element specifies a Subject by a combination of a name and a security domain governing the name of the Subject.
    • Field Detail

      • log

        protected static final Logger log
    • Constructor Detail

      • NameID

        public NameID​(String name,
                      String nameQualifier,
                      String format)
        Constructs a NameQualifier instance.
        Parameters:
        name - The string representing the name of the Subject
        nameQualifier - The security or administrative domain that qualifies the name of the Subject. This is optional could be null or "".
        format - The syntax used to describe the name of the Subject. This optional, could be null or "".
        Throws:
        SAMLException - if the input has an error.
      • NameID

        public NameID​(NameIDType nameIdType)
    • Method Detail

      • fromElement

        public static NameIDType fromElement​(Element element)
                                      throws SAMLException
        Constructs a NameIdentifer element from an existing XML block.
        Parameters:
        element - A org.w3c.dom.Element representing DOM tree for NameID object
        Throws:
        SAMLException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.