Class EPPNameVerificationInfoSignedCodeResult

java.lang.Object
com.verisign.epp.codec.nv.EPPNameVerificationInfoSignedCodeResult
All Implemented Interfaces:
EPPCodecComponent, EPPNameVerificationInfoResult, Serializable, Cloneable

public class EPPNameVerificationInfoSignedCodeResult extends Object implements EPPNameVerificationInfoResult
Info result for a command for the signed code, where the EPPNameVerificationInfoCmd type is set to EPPNameVerificationInfoCmd.Type.SIGNED_CODE.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      XML local name for EPPNameVerificationInfoSignedCodeResult.
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      XML root tag for EPPNameVerificationInfoSignedCodeResult.
      See Also:
  • Constructor Details

    • EPPNameVerificationInfoSignedCodeResult

      public EPPNameVerificationInfoSignedCodeResult()
      EPPNameVerificationInfoSignedCodeResult default constructor.
    • EPPNameVerificationInfoSignedCodeResult

      public EPPNameVerificationInfoSignedCodeResult(String aCode, String aType, EPPEncodedSignedCodeValue aSignedCode)
      EPPNameVerificationInfoSignedCodeResult constructor that takes all required attributes.
      Parameters:
      aCode - The verification code value
      aType - The verification code type
      aSignedCode - Signed code providing proof of verification
    • EPPNameVerificationInfoSignedCodeResult

      public EPPNameVerificationInfoSignedCodeResult(String aCode, String aType, EPPEncodedSignedCodeValue aSignedCode, EPPNameVerificationStatus aStatus, EPPAuthInfo aAuthInfo)
      EPPNameVerificationInfoSignedCodeResult constructor that takes all attributes.
      Parameters:
      aCode - The verification code value
      aType - The verification code type
      aSignedCode - Signed code providing proof of verification
      aStatus - The verification status
      aAuthInfo - Authorization information for Name Verification (NV) object.
  • Method Details

    • getCode

      public String getCode()
      Gets the verification code value.
      Returns:
      Verification code value
    • setCode

      public void setCode(String aCode)
      Sets the verification code value.
      Parameters:
      aCode - Verification code value.
    • getCodeType

      public String getCodeType()
      Gets the verification code type.
      Returns:
      Verification code type
    • setCodeType

      public void setCodeType(String aType)
      Sets the verification code type.
      Parameters:
      aType - The verification code type
    • getStatus

      public EPPNameVerificationStatus getStatus()
      Gets the verification status.
      Returns:
      Verification status
    • setStatus

      public void setStatus(EPPNameVerificationStatus aStatus)
      Sets the verification status.
      Parameters:
      aStatus - The verification status
    • getAuthInfo

      public EPPAuthInfo getAuthInfo()
      Gets the OPTIONAL authorization information for the Name Verification (NV) object.
      Returns:
      Authorization information if defined; null otherwise.
    • setAuthInfo

      public void setAuthInfo(EPPAuthInfo aAuthInfo)
      Sets the authorization information for the Name Verification (NV) object.
      Parameters:
      aAuthInfo - Authorization information of NV object.
    • getSignedCode

      public EPPEncodedSignedCodeValue getSignedCode()
      Gets the signed code that provides proof of verification.
      Returns:
      Signed code
    • setSignedCode

      public void setSignedCode(EPPEncodedSignedCodeValue aSignedCode)
      Sets the signed code that provides proof of verification.
      Parameters:
      aSignedCode - Signed code that provides proof of verification
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPNameVerificationInfoSignedCodeResult instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPNameVerificationInfoSignedCodeResult instance.
      Throws:
      EPPEncodeException - Unable to encode EPPNameVerificationInfoSignedCodeResult instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPNameVerificationInfoSignedCodeResult attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root DOM Element to decode EPPNameVerificationInfoSignedCodeResult from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

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

      public String getType()
      Gets the EPP response type associated with EPPNameVerificationInfoSignedCodeResult.
      Returns:
      EPPNameVerificationInfoSignedCodeResult.ELM_NAME
    • getNamespace

      public String getNamespace()
      Gets the EPP command namespace associated with EPPNameVerificationInfoSignedCodeResult.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      EPPNameVerificationMapFactory.NS
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPNameVerificationInfoSignedCodeResult with this instance.
      Overrides:
      equals in class Object
      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 Object
      Returns:
      Indented XML String if successful; ERROR otherwise.