Class RevokedVerificationCode
- java.lang.Object
-
- com.verisign.epp.codec.verificationcode.RevokedVerificationCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class RevokedVerificationCode extends java.lang.Object implements java.io.Serializable, java.lang.CloneableA revoked verification code that includes the attributes:
- Revoked verification code.
- Revocation datetime in UTC of the verification code.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RevokedVerificationCode()Default constructor.RevokedVerificationCode(java.lang.String aCode, java.util.Date aRevokedDate)Constructor that takes the requiredcodeandrevokedDateattribute values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneRevokedVerificationCode.voiddecode(java.lang.String aLine)java.lang.Stringencode()Encodes the revoked verification code attributes into a revoked verification code line.booleanequals(java.lang.Object aObject)Implements a deepRevokedVerificationCodecompare.java.lang.StringgetCode()Gets the revoked verification code value.java.util.DategetRevokedDate()Gets the revocation datetime of the signed mark.voidsetCode(java.lang.String aCode)Sets the revoked verification code value.voidsetRevokedDate(java.util.Date aRevokedDate)Sets the revocation datetime of the signed mark.java.lang.StringtoString()Implementation ofObject.toString, which will result in encoding the revoked verification code attributes into a revoked verification code line.
-
-
-
Constructor Detail
-
RevokedVerificationCode
public RevokedVerificationCode()
Default constructor. Thecodeand therevokedDateattributes must be set prior to callingencode().
-
RevokedVerificationCode
public RevokedVerificationCode(java.lang.String aCode, java.util.Date aRevokedDate)Constructor that takes the requiredcodeandrevokedDateattribute values.- Parameters:
aCode- Verification codeaRevokedDate- Revocation datetime of the verification code.
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Gets the revoked verification code value.- Returns:
- Revoked verification code value.
-
setCode
public void setCode(java.lang.String aCode)
Sets the revoked verification code value.- Parameters:
aCode- Verification code value
-
getRevokedDate
public java.util.Date getRevokedDate()
Gets the revocation datetime of the signed mark.- Returns:
- Revocation datetime of the signed mark.
-
setRevokedDate
public void setRevokedDate(java.util.Date aRevokedDate)
Sets the revocation datetime of the signed mark.- Parameters:
aRevokedDate- Revocation datetime of the signed mark.
-
encode
public java.lang.String encode() throws EPPEncodeExceptionEncodes 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(java.lang.String aLine) throws EPPDecodeException- Throws:
EPPDecodeException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneRevokedVerificationCode.- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
RevokedVerificationCode - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
Implements a deepRevokedVerificationCodecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-RevokedVerificationCodeinstance to compare with- Returns:
trueif equalfalseotherwise
-
toString
public java.lang.String 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.- Overrides:
toStringin classjava.lang.Object- Returns:
- Encoded revoked verification code line
-
-