|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.assertion.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.
Constructor Summary | |
SubjectLocality()
Constructor Constructor taking in nothing (assertion schema 25 allows it ) |
|
SubjectLocality(org.w3c.dom.Element localityElement)
Constructs an instance of SubjectLocality from an existing
XML block. |
|
SubjectLocality(java.lang.String ipAddress,
java.lang.String dnsAddress)
Constructs an instance of SubjectLocality . |
Method Summary | |
java.lang.String |
getDNSAddress()
Returns the DNS address from SubjectLocality locality |
java.lang.String |
getIPAddress()
Returns the IP address from SubjectLocality locality |
boolean |
setDNSAddress(java.lang.String dnsAddress)
Set the DNS address for SubjectLocality> locality. |
boolean |
setIPAddress(java.lang.String ipAddress)
Set the IP address for SubjectLocality locality. |
java.lang.String |
toString()
Returns a String representation of the element. |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the <SubjectLocality> element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SubjectLocality()
public SubjectLocality(org.w3c.dom.Element localityElement) throws SAMLException
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.public SubjectLocality(java.lang.String ipAddress, java.lang.String dnsAddress)
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.Method Detail |
public java.lang.String getIPAddress()
SubjectLocality
locality
public boolean setDNSAddress(java.lang.String dnsAddress)
SubjectLocality>
locality.
dnsAddress
- A String representation of DNS address.
public boolean setIPAddress(java.lang.String ipAddress)
SubjectLocality
locality.
ipAddress
- A String representation of IP address.
public java.lang.String getDNSAddress()
SubjectLocality
locality
public java.lang.String toString()
<saml:SubjectLocality>
.public java.lang.String toString(boolean includeNS, boolean declareNS)
<SubjectLocality>
element.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |