Class EPPAuthTokenDeleteCmd

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

public class EPPAuthTokenDeleteCmd extends EPPDeleteCmd
Represents an EPP AuthToken <delete> command that allows a client to delete an authToken object. The EPP <delete> command provides a transform operation that allows a client to delete an authToken object. In addition to the standard EPP command elements, the <delete> command MUST contain a <authToken:delete< element that identifies the domain namespace and the location of the authToken schema.
  • An <authToken:authToken> element that contains the authToken to be deleted. Use getName and setName to get and set the element.

EPPReponse is the response associated with EPPAuthTokenDeleteCmd.
See Also:
  • Field Details

  • Constructor Details

    • EPPAuthTokenDeleteCmd

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

      public EPPAuthTokenDeleteCmd(String aTransId, EPPAuthTokenData aAuthToken)
      EPPAuthTokenDeleteCmd constructor with all the required attributes without the revokedReason, which can be set with setRevokedReason(String).
      Parameters:
      aTransId - Transaction Id associated with command.
      aAuthToken - authentication token to delete.
  • Method Details

    • getNamespace

      public String getNamespace()
      Get the EPP command Namespace associated with EPPAuthTokenDeleteCmd.
      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
    • getRevokedReason

      public String getRevokedReason()
      Get the revoked reason for this delete operation.
      Returns:
      revoked reason
    • setRevokedReason

      public void setRevokedReason(String aRevokedReason)
      Set the revoked reason for this delete operation.
      Parameters:
      aRevokedReason - revoked reason
    • equals

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

      public Object clone() throws CloneNotSupportedException
      Clone EPPAuthTokenDeleteCmd.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPCommand
      Returns:
      clone of EPPAuthTokenDeleteCmd
      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 EPPAuthTokenDeleteCmd instance.
      Specified by:
      doEncode in class EPPDeleteCmd
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPAuthTokenDeleteCmd instance.
      Throws:
      EPPEncodeException - Unable to encode EPPAuthTokenDeleteCmd instance.
    • doDecode

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