|
|||||||||
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
public class 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()
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 . |
Method Summary | |
---|---|
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. |
Constructor Detail |
---|
public SubjectLocality()
public SubjectLocality(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(String ipAddress, 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 String getIPAddress()
SubjectLocality
locality
public boolean setDNSAddress(String dnsAddress)
SubjectLocality>
locality.
dnsAddress
- A String representation of DNS address.
public boolean setIPAddress(String ipAddress)
SubjectLocality
locality.
ipAddress
- A String representation of IP address.
public String getDNSAddress()
SubjectLocality
locality
public String toString()
toString
in class Object
<saml:SubjectLocality>
.public 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 |