Class EPPLoginSecUserAgent
java.lang.Object
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSecUserAgent
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Login Security User Agent identifies the client software and platform used by
the server to identify functional or security constraints, current security
issues, and potential future functional or security issues for the client.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLoginSecUserAgent.EPPLoginSecUserAgent(String aApp, String aTech, String aOs) Constructor forEPPLoginSecUserAgentthat sets all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPLoginSecUserAgentwith this instance.getApp()Gets the name of the client application software.Returns the XML namespace associated with theEPPCodecComponent.getOs()Gets the client operating system being used.getTech()Gets the technology used for the client software.booleanhasApp()Is the name of the client application software set?booleanhasOs()Is the client operating system set?booleanhasTech()Is the technology used for the client software set?voidSets the name of the client application software.voidSets the client operating system being used.voidSets the technology used for the client software.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLoginSecUserAgent.- See Also:
-
ELM_NAME
XML root tag forEPPLoginSecUserAgent.- See Also:
-
-
Constructor Details
-
EPPLoginSecUserAgent
public EPPLoginSecUserAgent()Default constructor forEPPLoginSecUserAgent. -
EPPLoginSecUserAgent
Constructor forEPPLoginSecUserAgentthat sets all attributes.- Parameters:
aApp- OPTIONAL name of the client application software with version if available, such as the name of the client SDK "EPP SDK 1.0.0". An example is "EPP SDK 1.0.0". Set tonullif undefined.aTech- OPTIONAL technology used for the client software with version if available, such as "Java 11.0.2". Set tonullif undefined.aOs- OPTIONAL operating system used, such as "x86_64 Mac OS X 10.21". Set tonullif undefined.
-
-
Method Details
-
hasApp
public boolean hasApp()Is the name of the client application software set?- Returns:
trueif the name of the client application software is defined;falseotherwise.
-
getApp
Gets the name of the client application software.- Returns:
- Gets the optional name of the client application software;
nullotherwise.
-
setApp
Sets the name of the client application software.- Parameters:
aApp- Name of the client application software with version if available, such as the name of the client SDK being used. An example is "EPP SDK 1.0.0". Set tonullif undefined.
-
hasTech
public boolean hasTech()Is the technology used for the client software set?- Returns:
trueif the technology of the client software is defined;falseotherwise.
-
getTech
Gets the technology used for the client software.- Returns:
- Gets the optional technology used for the client software;
nullotherwise.
-
setTech
Sets the technology used for the client software.- Parameters:
aTech- Technology used for the client software, such as "Java 11.0.2". Set tonullif undefined.
-
hasOs
public boolean hasOs()Is the client operating system set?- Returns:
trueif the client operating system is defined;falseotherwise.
-
getOs
Gets the client operating system being used.- Returns:
- Gets the operating system used, such as "x86_64 Mac OS X 10.21";
nullotherwise.
-
setOs
Sets the client operating system being used.- Parameters:
aOs- Name of the client operating system, such as "x86_64 Mac OS X 10.21". Set tonullif undefined.
-
encode
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPLoginSecUserAgent
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
equals
Compare an instance ofEPPLoginSecUserAgentwith this instance. -
clone
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLoginSecUserAgent - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-