com.tivoli.am.fim.trustserver.sts.uuser
Class Subject

java.lang.Object
  extended by com.tivoli.am.fim.trustserver.sts.uuser.Subject

public class Subject
extends java.lang.Object

Represents an STS Subject element of the STSUniversalUser/AdditionalAttributeStatement transform to and from XML.


Field Summary
static java.lang.String _java_copyright
           
static java.lang.String _java_sourceCodeID
           
 
Constructor Summary
Subject(java.lang.String name, java.lang.String format)
          Constructor from a name and SAML name format
 
Method Summary
protected  java.lang.String getElementName()
          Returns the element name of this Subject.
 java.lang.String getFormat()
          get the value of the format attribute that will be used in creation of the SAML 1.x NameIdentifier format
 java.lang.String getName()
          Get the attribute that is to b used as the value of the SAML 1.x NameIdentifier element.
 void setFormat(java.lang.String type)
          Set the value of the format attribute from the SAML 1.x NameIdentifier.
 void setName(java.lang.String name)
          Set the value of the name attribute
 org.w3c.dom.Element toXml(org.w3c.dom.Document owner)
          Returns an XML representation of this Subject as an org.w3c.dom.Element object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_java_sourceCodeID

public static final java.lang.String _java_sourceCodeID
See Also:
Constant Field Values

_java_copyright

public static final java.lang.String _java_copyright
See Also:
Constant Field Values
Constructor Detail

Subject

public Subject(java.lang.String name,
               java.lang.String format)
Constructor from a name and SAML name format

Parameters:
name - the name of the Subject as a String.
format - the format of the Subject as a String.
Method Detail

getElementName

protected java.lang.String getElementName()
Returns the element name of this Subject.

Returns:
the element name of this Subject.

getName

public java.lang.String getName()
Get the attribute that is to b used as the value of the SAML 1.x NameIdentifier element.

Returns:
the name of this Subject.

setName

public void setName(java.lang.String name)
Set the value of the name attribute

Parameters:
name - the name for this Subject object as a String.

getFormat

public java.lang.String getFormat()
get the value of the format attribute that will be used in creation of the SAML 1.x NameIdentifier format

Returns:
the format of this Subject object as a String.

setFormat

public void setFormat(java.lang.String type)
Set the value of the format attribute from the SAML 1.x NameIdentifier.

Parameters:
type - the value of the format attribute from the SAML 1.x NameIdentifier.

toXml

public org.w3c.dom.Element toXml(org.w3c.dom.Document owner)
Returns an XML representation of this Subject as an org.w3c.dom.Element object.

Parameters:
owner - the Document to add this Subject to.
Returns:
this Subject object as an org.w3c.dom.Element.