|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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)
This constructor builds an SubjectLocality element from an existing XML block. |
|
SubjectLocality(java.lang.String ipAddress,
java.lang.String dnsAddress)
Constructor |
Method Summary | |
java.lang.String |
getDNSAddress()
get the DNS address from SubjectLocality locality |
java.lang.String |
getIPAddress()
get 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()
Create a String representation of the element |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Create 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
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)
ipAddress:
- String representing the IPAddress of the entity that was
authenticated.dnsAddress:
- String representing the DNSAddress 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()
public boolean setDNSAddress(java.lang.String dnsAddress)
dnsAddress
- : A String representation of DNS addresspublic boolean setIPAddress(java.lang.String ipAddress)
ipAddess
- : A String representation of IP addresspublic java.lang.String getDNSAddress()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean includeNS, boolean declareNS)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |