Class RevokedVerificationCode
java.lang.Object
com.verisign.epp.codec.verificationcode.RevokedVerificationCode
- All Implemented Interfaces:
Serializable,Cloneable
A revoked verification code that includes the attributes:
- Revoked verification code.
- Revocation datetime in UTC of the verification code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RevokedVerificationCode(String aCode, Date aRevokedDate) Constructor that takes the requiredcodeandrevokedDateattribute values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneRevokedVerificationCode.voidencode()Encodes the revoked verification code attributes into a revoked verification code line.booleanImplements a deepRevokedVerificationCodecompare.getCode()Gets the revoked verification code value.Gets the revocation datetime of the signed mark.voidSets the revoked verification code value.voidsetRevokedDate(Date aRevokedDate) Sets the revocation datetime of the signed mark.toString()Implementation ofObject.toString, which will result in encoding the revoked verification code attributes into a revoked verification code line.
-
Constructor Details
-
RevokedVerificationCode
public RevokedVerificationCode()Default constructor. Thecodeand therevokedDateattributes must be set prior to callingencode(). -
RevokedVerificationCode
Constructor that takes the requiredcodeandrevokedDateattribute values.- Parameters:
aCode- Verification codeaRevokedDate- Revocation datetime of the verification code.
-
-
Method Details
-
getCode
Gets the revoked verification code value.- Returns:
- Revoked verification code value.
-
setCode
Sets the revoked verification code value.- Parameters:
aCode- Verification code value
-
getRevokedDate
Gets the revocation datetime of the signed mark.- Returns:
- Revocation datetime of the signed mark.
-
setRevokedDate
Sets the revocation datetime of the signed mark.- Parameters:
aRevokedDate- Revocation datetime of the signed mark.
-
encode
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
- Throws:
EPPDecodeException
-
clone
CloneRevokedVerificationCode.- Overrides:
clonein classObject- Returns:
- clone of
RevokedVerificationCode - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
Implements a deepRevokedVerificationCodecompare. -
toString
Implementation ofObject.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, aRuntimeExceptionis thrown.
-