com.sun.identity.federation.message.common
Class OldProvidedNameIdentifier

java.lang.Object
  extended by com.sun.identity.saml.assertion.NameIdentifier
      extended by com.sun.identity.federation.message.common.OldProvidedNameIdentifier

public class OldProvidedNameIdentifier
extends NameIdentifier

This class has methods to create the original NameIdentifier object.


Field Summary
protected  int minorVersion
           
 
Constructor Summary
OldProvidedNameIdentifier(Element oldProvidedNameIdentifierElement)
          Constructor to create OldProvidedNameIdentifier Object from Document Element.
OldProvidedNameIdentifier(String securityDomain, String name)
          Constructor creates OldProvidedNameIdentifier object.
OldProvidedNameIdentifier(String name, String nameQualifier, String format)
          Constructor to create OldProvidedNameIdentifier object.
 
Method Summary
 int getMinorVersion()
          Returns the MinorVersion.
 void setMinorVersion(int version)
          Sets the MinorVersion.
 String toXMLString()
          Returns a String representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of this object.
 
Methods inherited from class com.sun.identity.saml.assertion.NameIdentifier
equals, getFormat, getName, getNameQualifier, setFormat, setName, setNameQualifier, toString, toString
 

Field Detail

minorVersion

protected int minorVersion
Constructor Detail

OldProvidedNameIdentifier

public OldProvidedNameIdentifier(String name,
                                 String nameQualifier,
                                 String format)
                          throws SAMLException
Constructor to create OldProvidedNameIdentifier object.

Parameters:
name -
nameQualifier -
format -
Throws:
SAMLException - on error.

OldProvidedNameIdentifier

public OldProvidedNameIdentifier(Element oldProvidedNameIdentifierElement)
                          throws FSMsgException
Constructor to create OldProvidedNameIdentifier Object from Document Element.

Parameters:
oldProvidedNameIdentifierElement - the Document Element.
Throws:
FSMsgException - if object cannot be created.

OldProvidedNameIdentifier

public OldProvidedNameIdentifier(String securityDomain,
                                 String name)
                          throws FSMsgException
Constructor creates OldProvidedNameIdentifier object.

Parameters:
securityDomain -
name -
Throws:
FSMsgException - it there is an error creating this object.
Method Detail

setMinorVersion

public void setMinorVersion(int version)
Sets the MinorVersion.

Parameters:
version - the MinorVersion.
See Also:
OldProvidedNameIdentifier.getMinorVersion()

getMinorVersion

public int getMinorVersion()
Returns the MinorVersion.

Returns:
the MinorVersion.
See Also:
OldProvidedNameIdentifier.setMinorVersion(int)

toXMLString

public String toXMLString()
                   throws FSMsgException
Returns a String representation of this object.

Returns:
a String representation of this object.
Throws:
FSMsgExceptionif - there is an error converting this object to a string.
FSMsgException

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS)
                   throws FSMsgException
Returns a String representation of this object.

Parameters:
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.
Returns:
a XMLString representation of this object.
Throws:
FSMsgException - if there is an error converting this object to a string.