Class EPPAuthTokenInfoCmd

java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenInfoCmd
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPAuthTokenInfoCmd extends EPPInfoCmd
Represents an EPP AuthToken <info> command that is used to retrieve information associated with an authToken. The <authToken:authToken> element MUST contain the following child element:

  • A <authToken:authToken> element that contains the authToken for which information is requested.

EPPAuthTokenInfoResp is the concrete EPPReponse associated with EPPAuthTokenInfoCmd.
See Also:
  • Field Details

  • Constructor Details

    • EPPAuthTokenInfoCmd

      public EPPAuthTokenInfoCmd()
      Allocates a new EPPAuthTokenInfoCmd with default attribute values, which are all set to null.
    • EPPAuthTokenInfoCmd

      public EPPAuthTokenInfoCmd(String aTransId, EPPAuthTokenData aAuthToken)
      EPPAuthTokenInfoCmd constructor with all the required attributes.
      Parameters:
      aTransId - Transaction Id associated with command.
      aAuthToken - authentication token to get information on.
  • Method Details

    • getNamespace

      public String getNamespace()
      Get the EPP command Namespace associated with EPPAuthTokenInfoCmd.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Specified by:
      getNamespace in class EPPCommand
      Returns:
      EPPAuthTokenMapFactory.NS
    • getAuthenticationToken

      public EPPAuthTokenData getAuthenticationToken()
      Get the authentication token data.
      Returns:
      EPPAuthTokenData instance
    • setAuthToken

      public void setAuthToken(EPPAuthTokenData aAuthToken)
      Set the authentication token data.
      Parameters:
      aAuthToken - Authentication Token
    • equals

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

      public Object clone() throws CloneNotSupportedException
      Clone EPPAuthTokenInfoCmd.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPCommand
      Returns:
      clone of EPPAuthTokenInfoCmd
      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 EPPCommand
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • doEncode

      protected Element doEncode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPAuthTokenInfoCmd instance.
      Specified by:
      doEncode in class EPPInfoCmd
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPAuthTokenInfoCmd instance.
      Throws:
      EPPEncodeException - Unable to encode EPPAuthTokenInfoCmd instance.
    • doDecode

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPAuthTokenInfoCmd attributes from the aElement DOM Element tree.
      Specified by:
      doDecode in class EPPInfoCmd
      Parameters:
      aElement - Root DOM Element to decode EPPAuthTokenInfoCmd from.
      Throws:
      EPPDecodeException - Unable to decode aElement