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.Cloneable
A 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 requiredcode
andrevokedDate
attribute values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneRevokedVerificationCode
.void
decode(java.lang.String aLine)
java.lang.String
encode()
Encodes the revoked verification code attributes into a revoked verification code line.boolean
equals(java.lang.Object aObject)
Implements a deepRevokedVerificationCode
compare.java.lang.String
getCode()
Gets the revoked verification code value.java.util.Date
getRevokedDate()
Gets the revocation datetime of the signed mark.void
setCode(java.lang.String aCode)
Sets the revoked verification code value.void
setRevokedDate(java.util.Date aRevokedDate)
Sets the revocation datetime of the signed mark.java.lang.String
toString()
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. Thecode
and therevokedDate
attributes must be set prior to callingencode()
.
-
RevokedVerificationCode
public RevokedVerificationCode(java.lang.String aCode, java.util.Date aRevokedDate)
Constructor that takes the requiredcode
andrevokedDate
attribute 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 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(java.lang.String aLine) throws EPPDecodeException
- Throws:
EPPDecodeException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneRevokedVerificationCode
.- Overrides:
clone
in 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 deepRevokedVerificationCode
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-RevokedVerificationCode
instance to compare with- Returns:
true
if equalfalse
otherwise
-
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, aRuntimeException
is thrown.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Encoded revoked verification code line
-
-