com.sun.identity.saml.assertion
クラス NameIdentifier

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.NameIdentifier
直系の既知のサブクラス:
IDPProvidedNameIdentifier, OldProvidedNameIdentifier, SPProvidedNameIdentifier

public class NameIdentifier
extends Object

The NameIdentifier element specifies a Subject by a combination of a name and a security domain governing the name of the Subject.


コンストラクタの概要
protected NameIdentifier()
          Default contructor
  NameIdentifier(Element nameIdentifierElement)
          Constructs a NameIdentifer element from an existing XML block.
  NameIdentifier(String name)
          Constructor
  NameIdentifier(String name, String nameQualifier)
          Constructs a NameQualifier instance.
  NameIdentifier(String name, String nameQualifier, String format)
          Constructs a NameQualifier instance.
 
メソッドの概要
 boolean equals(NameIdentifier nid)
          Checks for equality between this object and the NameQualifier passed down as parameter.
 String getFormat()
          Returns format.
 String getName()
          Returns the name from NameQualifier.
 String getNameQualifier()
          Returns the name.
 boolean setFormat(String format)
          Sets the format attribute.
protected  boolean setName(String name)
          Sets the name attribute.
 boolean setNameQualifier(String nameQualifier)
          Sets nameQualifier attribute.
 String toString()
          Returns a String representation of the element.
 String toString(boolean includeNS, boolean declareNS)
          Returns String representation of the <NameIdentifier> element.
 

コンストラクタの詳細

NameIdentifier

protected NameIdentifier()
Default contructor


NameIdentifier

public NameIdentifier(Element nameIdentifierElement)
               throws SAMLException
Constructs a NameIdentifer element from an existing XML block.

パラメータ:
nameIdentifierElement - A org.w3c.dom.Element representing DOM tree for NameIdentifier object
例外:
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.

NameIdentifier

public NameIdentifier(String name)
               throws SAMLException
Constructor

パラメータ:
name - - The string representing the name of the Subject
例外:
SAMLException - if the input has an error.

NameIdentifier

public NameIdentifier(String name,
                      String nameQualifier)
               throws SAMLException
Constructs a NameQualifier instance.

パラメータ:
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 "".
例外:
SAMLException - if the input has an error.

NameIdentifier

public NameIdentifier(String name,
                      String nameQualifier,
                      String format)
               throws SAMLException
Constructs a NameQualifier instance.

パラメータ:
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 "".
例外:
SAMLException - if the input has an error.
メソッドの詳細

getFormat

public String getFormat()
Returns format.

戻り値:
format element. Returns null if there is no format specified.

setFormat

public boolean setFormat(String format)
Sets the format attribute.

パラメータ:
format - A String representing the format.
戻り値:
true if operation succeeds.

getNameQualifier

public String getNameQualifier()
Returns the name.

戻り値:
A String representing the nameQualifier. Returns null if there is no nameQualifier.

setNameQualifier

public boolean setNameQualifier(String nameQualifier)
Sets nameQualifier attribute.

パラメータ:
nameQualifier - name qualifier.
戻り値:
true if operation succeeds.

setName

protected boolean setName(String name)
Sets the name attribute.

パラメータ:
name - name of the nameQualifier.
戻り値:
true if operation succeeds.

getName

public String getName()
Returns the name from NameQualifier.

戻り値:
name

toString

public String toString()
Returns a String representation of the element.

オーバーライド:
クラス Object 内の toString
戻り値:
A string containing the valid XML for this element By default name space name is prepended to the element name example <saml:NameIdentifier>.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns String representation of the <NameIdentifier> element.

パラメータ:
includeNS - 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.
戻り値:
A string containing the valid XML for this element

equals

public boolean equals(NameIdentifier nid)
Checks for equality between this object and the NameQualifier passed down as parameter. Checks if Name is equal and if it has NameQualifier and Format defined checks for equality in those too.

パラメータ:
nid - NameIdentifier to be checked
戻り値:
true if the two NameQualifier are equal or not