Class SubjectLocalityImpl

  • All Implemented Interfaces:
    SubjectLocality

    public class SubjectLocalityImpl
    extends Object
    implements SubjectLocality
    This class implements interface SubjectLocality. The SubjectLocality element specifies the DNS domain name and IP address for the system entity that performed the authentication. It exists as part of AuthenticationStatement element.

     <complexType name="SubjectLocalityType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <attribute name="Address" 
           type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="DNSName" 
           type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • SubjectLocalityImpl

        public SubjectLocalityImpl()
        Class constructor. Caller may need to call setters to populate the object.
      • SubjectLocalityImpl

        public SubjectLocalityImpl​(String xmlString)
                            throws SAML2Exception
        Class constructor with SubjectLocality in xml string format.
        Throws:
        SAML2Exception
    • Method Detail

      • isMutable

        public boolean isMutable()
        Returns the mutability of the object.
        Specified by:
        isMutable in interface SubjectLocality
        Returns:
        true if the object is mutable; false otherwise.
      • toXMLString

        public String toXMLString()
                           throws SAML2Exception
        Returns a String representation of the element.
        Specified by:
        toXMLString in interface SubjectLocality
        Returns:
        A string containing the valid XML for this element. By default name space name is prepended to the element name.
        Throws:
        SAML2Exception - if the object does not conform to the schema.
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation of the SubjectLocality element.
        Specified by:
        toXMLString in interface SubjectLocality
        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:
        SAML2Exception - if the object does not conform to the schema.