com.sun.identity.saml.assertion
クラス SubjectLocality

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.SubjectLocality

public class SubjectLocality
extends Object

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.


コンストラクタの概要
SubjectLocality()
          Default Constructor
SubjectLocality(Element localityElement)
          Constructs an instance of SubjectLocality from an existing XML block.
SubjectLocality(String ipAddress, String dnsAddress)
          Constructs an instance of SubjectLocality.
 
メソッドの概要
 String getDNSAddress()
          Returns the DNS address from SubjectLocality locality
 String getIPAddress()
          Returns the IP address from SubjectLocality locality
 boolean setDNSAddress(String dnsAddress)
          Sets the DNS address for SubjectLocality> locality.
 boolean setIPAddress(String ipAddress)
          Sets the IP address for SubjectLocality locality.
 String toString()
          Returns a String representation of the element.
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the <SubjectLocality> element.
 

コンストラクタの詳細

SubjectLocality

public SubjectLocality()
Default Constructor


SubjectLocality

public SubjectLocality(Element localityElement)
                throws SAMLException
Constructs an instance of SubjectLocality from an existing XML block.

パラメータ:
localityElement - A org.w3c.dom.Element representing DOM tree for SubjectLocality object.
例外:
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 of SubjectLocality.

パラメータ:
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.
メソッドの詳細

getIPAddress

public String getIPAddress()
Returns the IP address from SubjectLocality locality

戻り値:
A String representation of IP address.

setDNSAddress

public boolean setDNSAddress(String dnsAddress)
Sets the DNS address for SubjectLocality> locality.

パラメータ:
dnsAddress - A String representation of DNS address.
戻り値:
true indicating the success of the operation.

setIPAddress

public boolean setIPAddress(String ipAddress)
Sets the IP address for SubjectLocality locality.

パラメータ:
ipAddress - A String representation of IP address.
戻り値:
true indicating the success of the operation.

getDNSAddress

public String getDNSAddress()
Returns the DNS address from SubjectLocality locality

戻り値:
A String representation of DNS address.

toString

public String toString()
Returns a String representation of the element.

オーバーライド:
クラス Object 内の toString
戻り値:
A string containing the valid XML for this element By default name space name is prepended to the element name example <saml:SubjectLocality>.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns a String representation of the <SubjectLocality> element.

パラメータ:
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.
戻り値:
A string containing the valid XML for this element