Class EPPLoginSecUserAgent

java.lang.Object
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSecUserAgent
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPLoginSecUserAgent extends Object implements EPPCodecComponent
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
    Modifier and Type
    Field
    Description
    static final String
    XML local name for EPPLoginSecUserAgent.
    static final String
    XML root tag for EPPLoginSecUserAgent.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for EPPLoginSecUserAgent.
    Constructor for EPPLoginSecUserAgent that sets all attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone an EPPCodecComponent instance.
    void
    decode(Element aElement)
    Decode a DOM element tree to initialize the instance attributes.
    encode(Document aDocument)
    Encode instance into a DOM element tree.
    boolean
    equals(Object aObject)
    Compare an instance of EPPLoginSecUserAgent with this instance.
    Gets the name of the client application software.
    Returns the XML namespace associated with the EPPCodecComponent.
    Gets the client operating system being used.
    Gets the technology used for the client software.
    boolean
    Is the name of the client application software set?
    boolean
    Is the client operating system set?
    boolean
    Is the technology used for the client software set?
    void
    setApp(String aApp)
    Sets the name of the client application software.
    void
    Sets the client operating system being used.
    void
    setTech(String aTech)
    Sets the technology used for the client software.
    Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EPPLoginSecUserAgent

      public EPPLoginSecUserAgent()
      Default constructor for EPPLoginSecUserAgent.
    • EPPLoginSecUserAgent

      public EPPLoginSecUserAgent(String aApp, String aTech, String aOs)
      Constructor for EPPLoginSecUserAgent that 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 to null if undefined.
      aTech - OPTIONAL technology used for the client software with version if available, such as "Java 11.0.2". Set to null if undefined.
      aOs - OPTIONAL operating system used, such as "x86_64 Mac OS X 10.21". Set to null if undefined.
  • Method Details

    • hasApp

      public boolean hasApp()
      Is the name of the client application software set?
      Returns:
      true if the name of the client application software is defined; false otherwise.
    • getApp

      public String getApp()
      Gets the name of the client application software.
      Returns:
      Gets the optional name of the client application software; null otherwise.
    • setApp

      public void setApp(String aApp)
      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 to null if undefined.
    • hasTech

      public boolean hasTech()
      Is the technology used for the client software set?
      Returns:
      true if the technology of the client software is defined; false otherwise.
    • getTech

      public String getTech()
      Gets the technology used for the client software.
      Returns:
      Gets the optional technology used for the client software; null otherwise.
    • setTech

      public void setTech(String aTech)
      Sets the technology used for the client software.
      Parameters:
      aTech - Technology used for the client software, such as "Java 11.0.2". Set to null if undefined.
    • hasOs

      public boolean hasOs()
      Is the client operating system set?
      Returns:
      true if the client operating system is defined; false otherwise.
    • getOs

      public String getOs()
      Gets the client operating system being used.
      Returns:
      Gets the operating system used, such as "x86_64 Mac OS X 10.21"; null otherwise.
    • setOs

      public void setOs(String aOs)
      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 to null if undefined.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      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:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPLoginSecUserAgent
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPLoginSecUserAgent with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone an EPPCodecComponent instance.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPLoginSecUserAgent
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.