Class SubjectLocalityImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectLocalityImpl
-
- All Implemented Interfaces:
SubjectLocality
public class SubjectLocalityImpl extends Object implements SubjectLocality
This class implements interfaceSubjectLocality
. TheSubjectLocality
element specifies the DNS domain name and IP address for the system entity that performed the authentication. It exists as part ofAuthenticationStatement
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 Summary
Constructors Constructor Description SubjectLocalityImpl()
Class constructor.SubjectLocalityImpl(String xmlString)
Class constructor withSubjectLocality
in xml string format.SubjectLocalityImpl(Element element)
Class constructor withSubjectLocality
inElement
format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
Returns the value of theAddress
attribute.String
getDNSName()
Returns the value of theDNSName
attribute.boolean
isMutable()
Returns the mutability of the object.void
makeImmutable()
Makes the object immutable.void
setAddress(String value)
Sets the value of theAddress
attribute.void
setDNSName(String value)
Sets the value of theDNSName
attribute.String
toXMLString()
Returns a String representation of the element.String
toXMLString(boolean includeNS, boolean declareNS)
Returns a String representation of theSubjectLocality
element.
-
-
-
Constructor Detail
-
SubjectLocalityImpl
public SubjectLocalityImpl()
Class constructor. Caller may need to call setters to populate the object.
-
SubjectLocalityImpl
public SubjectLocalityImpl(Element element) throws SAML2Exception
Class constructor withSubjectLocality
inElement
format.- Throws:
SAML2Exception
-
SubjectLocalityImpl
public SubjectLocalityImpl(String xmlString) throws SAML2Exception
Class constructor withSubjectLocality
in xml string format.- Throws:
SAML2Exception
-
-
Method Detail
-
makeImmutable
public void makeImmutable()
Makes the object immutable.- Specified by:
makeImmutable
in interfaceSubjectLocality
-
isMutable
public boolean isMutable()
Returns the mutability of the object.- Specified by:
isMutable
in interfaceSubjectLocality
- Returns:
true
if the object is mutable;false
otherwise.
-
getDNSName
public String getDNSName()
Returns the value of theDNSName
attribute.- Specified by:
getDNSName
in interfaceSubjectLocality
- Returns:
- the value of the
DNSName
attribute. - See Also:
setDNSName(String)
-
setDNSName
public void setDNSName(String value) throws SAML2Exception
Sets the value of theDNSName
attribute.- Specified by:
setDNSName
in interfaceSubjectLocality
- Parameters:
value
- new value of theDNSName
attribute.- Throws:
SAML2Exception
- if the object is immutable.- See Also:
getDNSName()
-
getAddress
public String getAddress()
Returns the value of theAddress
attribute.- Specified by:
getAddress
in interfaceSubjectLocality
- Returns:
- the value of the
Address
attribute. - See Also:
setAddress(String)
-
setAddress
public void setAddress(String value) throws SAML2Exception
Sets the value of theAddress
attribute.- Specified by:
setAddress
in interfaceSubjectLocality
- Parameters:
value
- new value ofAddress
attribute.- Throws:
SAML2Exception
- if the object is immutable.- See Also:
getAddress()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of the element.- Specified by:
toXMLString
in interfaceSubjectLocality
- Returns:
- A string containing the valid XML for this element. By default name space name is prepended to the element name.
- Throws:
SAML2Exception
- if the object does not conform to the schema.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
Returns a String representation of theSubjectLocality
element.- Specified by:
toXMLString
in interfaceSubjectLocality
- Parameters:
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.- Returns:
- A string containing the valid XML for this element
- Throws:
SAML2Exception
- if the object does not conform to the schema.
-
-