public class SubjectLocalityImpl extends Object implements SubjectLocality
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.
<complexType name="SubjectLocalityType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="Address" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="DNSName" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
SubjectLocalityImpl()
Class constructor.
|
SubjectLocalityImpl(Element element)
Class constructor with
SubjectLocality in
Element format. |
SubjectLocalityImpl(String xmlString)
Class constructor with
SubjectLocality in xml string format. |
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Returns the value of the
Address attribute. |
String |
getDNSName()
Returns the value of the
DNSName attribute. |
boolean |
isMutable()
Returns the mutability of the object.
|
void |
makeImmutable()
Makes the object immutable.
|
void |
setAddress(String value)
Sets the value of the
Address attribute. |
void |
setDNSName(String value)
Sets the value of the
DNSName attribute. |
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the
SubjectLocality element. |
public SubjectLocalityImpl()
public SubjectLocalityImpl(Element element) throws SAML2Exception
SubjectLocality
in
Element
format.SAML2Exception
public SubjectLocalityImpl(String xmlString) throws SAML2Exception
SubjectLocality
in xml string format.SAML2Exception
public void makeImmutable()
makeImmutable
in interface SubjectLocality
public boolean isMutable()
isMutable
in interface SubjectLocality
true
if the object is mutable;
false
otherwise.public String getDNSName()
DNSName
attribute.getDNSName
in interface SubjectLocality
DNSName
attribute.setDNSName(String)
public void setDNSName(String value) throws SAML2Exception
DNSName
attribute.setDNSName
in interface SubjectLocality
value
- new value of the DNSName
attribute.SAML2Exception
- if the object is immutable.getDNSName()
public String getAddress()
Address
attribute.getAddress
in interface SubjectLocality
Address
attribute.setAddress(String)
public void setAddress(String value) throws SAML2Exception
Address
attribute.setAddress
in interface SubjectLocality
value
- new value of Address
attribute.SAML2Exception
- if the object is immutable.getAddress()
public String toXMLString() throws SAML2Exception
toXMLString
in interface SubjectLocality
SAML2Exception
- if the object does not conform to the schema.public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
SubjectLocality
element.toXMLString
in interface SubjectLocality
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.SAML2Exception
- if the object does not conform to the schema.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.