public class SubjectLocality extends SubjectLocalityType implements SubjectLocality
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.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
dnsAddress, ipAddress| Constructor and Description |
|---|
SubjectLocality()
Constructor
Constructor taking in nothing (assertion schema 25 allows it )
|
SubjectLocality(String ipAddress,
String dnsAddress)
Constructs an instance of
SubjectLocality. |
| Modifier and Type | Method and Description |
|---|---|
static SubjectLocalityType |
fromElement(Element element)
Constructs an instance of
SubjectLocality from an existing
XML block. |
String |
getDNSAddress()
Gets the value of the dnsAddress property.
|
String |
getIPAddress()
Gets the value of the ipAddress property.
|
setDNSAddress, setIPAddressprotected static final Logger log
public SubjectLocality()
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.public static SubjectLocalityType fromElement(Element element) throws SAMLException
SubjectLocality from an existing
XML block.element - 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 String getDNSAddress()
SubjectLocalityTypegetDNSAddress in class SubjectLocalityTypeStringpublic String getIPAddress()
SubjectLocalityTypegetIPAddress in class SubjectLocalityTypeStringCopyright © 2005–2018 Oracle Corporation. All rights reserved.