com.sun.identity.saml2.assertion
Interface SubjectLocality


public 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>
 


Method Summary
 java.lang.String getAddress()
          Returns the value of the Address attribute.
 java.lang.String getDNSName()
          Returns the value of the DNSName attribute.
 boolean isMutable()
          Returns the mutability of the object.
 void makeImmutable()
          Makes the object immutable.
 void setAddress(java.lang.String value)
          Sets the value of the Address attribute.
 void setDNSName(java.lang.String value)
          Sets the value of the DNSName attribute.
 java.lang.String toXMLString()
          Returns a String representation of the element.
 java.lang.String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of the SubjectLocality element.
 

Method Detail

makeImmutable

public void makeImmutable()
Makes the object immutable.


isMutable

public boolean isMutable()
Returns the mutability of the object.

Returns:
true if the object is mutable; false otherwise.

getDNSName

public java.lang.String getDNSName()
Returns the value of the DNSName attribute.

Returns:
the value of the DNSName attribute.
See Also:
setDNSName(String)

setDNSName

public void setDNSName(java.lang.String value)
                throws SAML2Exception
Sets the value of the DNSName attribute.

Parameters:
value - new value of the DNSName attribute.
Throws:
SAML2Exception - if the object is immutable.
See Also:
getDNSName()

getAddress

public java.lang.String getAddress()
Returns the value of the Address attribute.

Returns:
the value of the Address attribute.
See Also:
setAddress(String)

setAddress

public void setAddress(java.lang.String value)
                throws SAML2Exception
Sets the value of the Address attribute.

Parameters:
value - new value of Address attribute.
Throws:
SAML2Exception - if the object is immutable.
See Also:
getAddress()

toXMLString

public java.lang.String toXMLString()
                             throws SAML2Exception
Returns a String representation of the element.

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 java.lang.String toXMLString(boolean includeNS,
                                    boolean declareNS)
                             throws SAML2Exception
Returns a String representation of the SubjectLocality element.

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.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.