Class Subject


  • public class Subject
    extends java.lang.Object
    Represents an STS Subject element of the STSUniversalUser/AdditionalAttributeStatement transform to and from XML.
    Version:
    • Constructor Summary

      Constructors 
      Constructor Description
      Subject​(java.lang.String name, java.lang.String format)
      Constructor from a name and SAML name format
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        equals, 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
    • 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

      • 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.