java.lang.Object
com.sun.xml.wss.saml.internal.saml20.jaxb20.NameIDType
com.sun.xml.wss.saml.assertion.saml20.jaxb20.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 Details

    • log

      protected static final Logger log
  • Constructor Details

    • 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 "".
    • NameID

      public NameID(NameIDType nameIdType)
  • Method Details

    • 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.