com.sun.xml.wss.saml.assertion.saml20.jaxb20
Class NameID

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml20.jaxb20.NameIDType
      extended by 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 Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.NameIDType
format, nameQualifier, spNameQualifier, spProvidedID, value
 
Constructor Summary
NameID(NameIDType nameIdType)
           
NameID(String name, String nameQualifier, String format)
          Constructs a NameQualifier instance.
 
Method Summary
static NameIDType fromElement(Element element)
          Constructs a NameIdentifer element 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 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:
NameIDElement - 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.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.