Class NameID
- 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 aSubjectby a combination of a name and a security domain governing the name of theSubject.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.NameIDType
format, nameQualifier, spNameQualifier, spProvidedID, value
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NameIDTypefromElement(Element element)Constructs aNameIdentiferelement from an existing XML block.-
Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.NameIDType
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.wss.saml.NameID
getFormat, getNameQualifier, getValue
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Constructor Detail
-
NameID
public NameID(String name, String nameQualifier, String format)
Constructs aNameQualifierinstance.- Parameters:
name- The string representing the name of the SubjectnameQualifier- The security or administrative domain that qualifies the name of theSubject. This is optional could be null or "".format- The syntax used to describe the name of theSubject. This optional, could be null or "".
-
NameID
public NameID(NameIDType nameIdType)
-
-
Method Detail
-
fromElement
public static NameIDType fromElement(Element element) throws SAMLException
Constructs aNameIdentiferelement from an existing XML block.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forNameIDobject- Throws:
SAMLException- if it could not process theorg.w3c.dom.Elementproperly, implying that there is an error in the sender or in the element definition.
-
-