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

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

public class SPProvidedNameIdentifier
extends NameIdentifier

This class contains methods to create Service Provider NameIdentifier.


Field Summary
protected  int minorVersion
           
 
Constructor Summary
SPProvidedNameIdentifier(Element spProvidedNameIdentifierElement)
          Constructor creates SPProvidedNameIdentifier object from Document Element.
SPProvidedNameIdentifier(String securityDomain, String name)
          Constructor creates SPProvidedNameIdentifier object.
SPProvidedNameIdentifier(String name, String nameQualifier, String format)
          Constructor creates SPProvidedNameIdentifier object.
 
Method Summary
 int getMinorVersion()
          Returns the MinorVersion attribute.
 void setMinorVersion(int version)
          Sets the MinorVersion attribute.
 String toXMLString()
          Returns the string representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns the 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

SPProvidedNameIdentifier

public SPProvidedNameIdentifier(String name,
                                String nameQualifier,
                                String format)
                         throws SAMLException
Constructor creates SPProvidedNameIdentifier object.

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

SPProvidedNameIdentifier

public SPProvidedNameIdentifier(Element spProvidedNameIdentifierElement)
                         throws FSMsgException
Constructor creates SPProvidedNameIdentifier object from Document Element.

Parameters:
spProvidedNameIdentifierElement - the Document Element.
Throws:
FSMsgException - on errors.

SPProvidedNameIdentifier

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

Parameters:
securityDomain - the Security Domain
name - the identifier
Throws:
FSMsgException - if there is an error .
Method Detail

setMinorVersion

public void setMinorVersion(int version)
Sets the MinorVersion attribute.

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

getMinorVersion

public int getMinorVersion()
Returns the MinorVersion attribute.

Returns:
the MinorVersion attribute.
See Also:
SPProvidedNameIdentifier.setMinorVersion(int)

toXMLString

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

Returns:
a string containing the valid XML for this element
Throws:
FSMsgException - if there is an error creating XML string from this object.

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS)
                   throws FSMsgException
Returns the 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 string containing the valid XML for this element
Throws:
FSMsgException - if there is an error creating XML string from this object.