Class SubjectLocality
- java.lang.Object
-
- com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectLocalityType
-
- com.sun.xml.wss.saml.assertion.saml11.jaxb20.SubjectLocality
-
- All Implemented Interfaces:
SubjectLocality
public class SubjectLocality extends SubjectLocalityType implements SubjectLocality
TheSubjectLocalityelement specifies the DNS domain name and IP address for the system entity that performed the authentication. It exists as part ofAuthenticationStatementelement.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectLocalityType
dnsAddress, ipAddress
-
-
Constructor Summary
Constructors Constructor Description SubjectLocality()Constructor Constructor taking in nothing (assertion schema 25 allows it )SubjectLocality(String ipAddress, String dnsAddress)Constructs an instance ofSubjectLocality.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubjectLocalityTypefromElement(Element element)Constructs an instance ofSubjectLocalityfrom an existing XML block.StringgetDNSAddress()Gets the value of the dnsAddress property.StringgetIPAddress()Gets the value of the ipAddress property.-
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectLocalityType
setDNSAddress, setIPAddress
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Constructor Detail
-
SubjectLocality
public SubjectLocality()
Constructor Constructor taking in nothing (assertion schema 25 allows it )
-
SubjectLocality
public SubjectLocality(String ipAddress, String dnsAddress)
Constructs an instance ofSubjectLocality.- Parameters:
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
-
fromElement
public static SubjectLocalityType fromElement(Element element) throws SAMLException
Constructs an instance ofSubjectLocalityfrom an existing XML block.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forSubjectLocalityobject.- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-
getDNSAddress
public String getDNSAddress()
Description copied from class:SubjectLocalityTypeGets the value of the dnsAddress property.- Overrides:
getDNSAddressin classSubjectLocalityType- Returns:
- possible object is
String
-
getIPAddress
public String getIPAddress()
Description copied from class:SubjectLocalityTypeGets the value of the ipAddress property.- Overrides:
getIPAddressin classSubjectLocalityType- Returns:
- possible object is
String
-
-