Package com.sun.identity.saml.assertion
Class SubjectLocality
- java.lang.Object
 - 
- com.sun.identity.saml.assertion.SubjectLocality
 
 
- 
@SupportedAll public class SubjectLocality extends Object
TheSubjectLocalityelement specifies the DNS domain name and IP address for the system entity that performed the authentication. It exists as part ofAuthenticationStatementelement. 
- 
- 
Constructor Summary
Constructors Constructor Description SubjectLocality()Default ConstructorSubjectLocality(String ipAddress, String dnsAddress)Constructs an instance ofSubjectLocality.SubjectLocality(Element localityElement)Constructs an instance ofSubjectLocalityfrom an existing XML block. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDNSAddress()Returns the DNS address fromSubjectLocalitylocalityStringgetIPAddress()Returns the IP address fromSubjectLocalitylocalitybooleansetDNSAddress(String dnsAddress)Sets the DNS address forSubjectLocalitylocality.booleansetIPAddress(String ipAddress)Sets the IP address forSubjectLocalitylocality.StringtoString()Returns a String representation of the element.StringtoString(boolean includeNS, boolean declareNS)Returns a String representation of the<SubjectLocality>element. 
 - 
 
- 
- 
Constructor Detail
- 
SubjectLocality
public SubjectLocality()
Default Constructor 
- 
SubjectLocality
public SubjectLocality(Element localityElement) throws SAMLException
Constructs an instance ofSubjectLocalityfrom an existing XML block.- Parameters:
 localityElement- Aorg.w3c.dom.Elementrepresenting DOM tree forSubjectLocalityobject.- Throws:
 SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
 
- 
SubjectLocality
public SubjectLocality(String ipAddress, String dnsAddress)
Constructs an instance ofSubjectLocality.- Parameters:
 ipAddress- String representing the IP Address of the entity that was authenticated.dnsAddress- String representing the DNS Address of the entity that was authenticated. As per SAML specification they are both optional, so values can be null.
 
 - 
 
- 
Method Detail
- 
getIPAddress
public String getIPAddress()
Returns the IP address fromSubjectLocalitylocality- Returns:
 - A String representation of IP address.
 
 
- 
setDNSAddress
public boolean setDNSAddress(String dnsAddress)
Sets the DNS address forSubjectLocalitylocality.- Parameters:
 dnsAddress- A String representation of DNS address.- Returns:
 - true indicating the success of the operation.
 
 
- 
setIPAddress
public boolean setIPAddress(String ipAddress)
Sets the IP address forSubjectLocalitylocality.- Parameters:
 ipAddress- A String representation of IP address.- Returns:
 - true indicating the success of the operation.
 
 
- 
getDNSAddress
public String getDNSAddress()
Returns the DNS address fromSubjectLocalitylocality- Returns:
 - A String representation of DNS address.
 
 
- 
toString
public String toString()
Returns a String representation of the element. 
- 
toString
public String toString(boolean includeNS, boolean declareNS)
Returns a String representation of the<SubjectLocality>element.- Parameters:
 includeNS- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
 - A string containing the valid XML for this element
 
 
 - 
 
 -