Class RevokedVerificationCode

java.lang.Object
com.verisign.epp.codec.verificationcode.RevokedVerificationCode
All Implemented Interfaces:
Serializable, Cloneable

public class RevokedVerificationCode extends Object implements Serializable, Cloneable
A revoked verification code that includes the attributes:
  • Revoked verification code.
  • Revocation datetime in UTC of the verification code.
See Also:
  • Constructor Details

    • RevokedVerificationCode

      public RevokedVerificationCode()
      Default constructor. The code and the revokedDate attributes must be set prior to calling encode().
    • RevokedVerificationCode

      public RevokedVerificationCode(String aCode, Date aRevokedDate)
      Constructor that takes the required code and revokedDate attribute values.
      Parameters:
      aCode - Verification code
      aRevokedDate - Revocation datetime of the verification code.
  • Method Details

    • getCode

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

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

      public Date getRevokedDate()
      Gets the revocation datetime of the signed mark.
      Returns:
      Revocation datetime of the signed mark.
    • setRevokedDate

      public void setRevokedDate(Date aRevokedDate)
      Sets the revocation datetime of the signed mark.
      Parameters:
      aRevokedDate - Revocation datetime of the signed mark.
    • encode

      public String encode() throws EPPEncodeException
      Encodes the revoked verification code attributes into a revoked verification code line.
      Returns:
      Encoded revoked verification code line
      Throws:
      EPPEncodeException - Error encoding the verification code line.
    • decode

      public void decode(String aLine) throws EPPDecodeException
      Throws:
      EPPDecodeException
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone RevokedVerificationCode.
      Overrides:
      clone in class Object
      Returns:
      clone of RevokedVerificationCode
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • equals

      public boolean equals(Object aObject)
      Implements a deep RevokedVerificationCode compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - RevokedVerificationCode instance to compare with
      Returns:
      true if equal false otherwise
    • toString

      public String toString()
      Implementation of Object.toString, which will result in encoding the revoked verification code attributes into a revoked verification code line. If there is an error encoding the verification code line, a RuntimeException is thrown.
      Overrides:
      toString in class Object
      Returns:
      Encoded revoked verification code line