Class EPPAuthTokenCreateResp

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

public class EPPAuthTokenCreateResp extends EPPResponse
Represents an EPP AuthToken <authToken:creData> response to a EPPAuthTokenCreateCmd. When a <crate> command has been processed successfully, the EPP <resData> element MUSt contain a child <authToken:creData> element that identifies the authToken namespace and the location of the authToken schema. The <authToken:creData> element contains the following child elements:

  • A <authToken:authToken> element that contains the authentication token that has been created. Use getAuthToken and setAuthToken to get and set the element.
See Also:
  • Field Details

  • Constructor Details

    • EPPAuthTokenCreateResp

      public EPPAuthTokenCreateResp()
      EPPAuthTokenCreateResp default constructor.
    • EPPAuthTokenCreateResp

      public EPPAuthTokenCreateResp(EPPTransId aTransId, EPPAuthTokenData aAuthToken)
      EPPAuthTokenCreateResp constructor that the transaction id associated with the response.
      Parameters:
      aTransId - Transaction Id associated with command.
      aAuthToken - EPPAuthTokenData instance.
  • Method Details

    • doEncode

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

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPAuthTokenCreateResp attributes from the aElement DOM Element tree.
      Overrides:
      doDecode in class EPPResponse
      Parameters:
      aElement - Root DOM Element to decode EPPAuthTokenCreateResp from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPAuthTokenCreateResp.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPResponse
      Returns:
      clone of EPPAuthTokenCreateResp
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • setAuthToken

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

      public EPPAuthTokenData getAuthToken()
      Gets the EPP AuthToken associated with EPPAuthTokenCreateResp.
      Returns:
      EPPAuthTokenData instance
    • getNamespace

      public String getNamespace()
      Gets the EPP command namespace associated with EPPAuthTokenCreateResp.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Overrides:
      getNamespace in class EPPResponse
      Returns:
      EPPAuthTokenMapFactory.NS
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPAuthTokenCreateResp with this instance.
      Overrides:
      equals in class EPPResponse
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • 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 EPPResponse
      Returns:
      Indented XML String if successful; ERROR otherwise.