Class VerificationCodeRevocationList
java.lang.Object
com.verisign.epp.codec.verificationcode.VerificationCodeRevocationList
Class that holds the attributes for a Verification Code Revocation List and
provides the following:
- Encode the Verification Code Revocation List to a
String, that can be written to a file. - Decode the Verification Code Revocation List from a
Stringor anInputStream. - Check if a specific
EPPSignedCodeis revoked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value of theversionattribute. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.VerificationCodeRevocationList(Date aCreatedDate) Constructor that takes the requirement attribute value.VerificationCodeRevocationList(Date aCreatedDate, List<RevokedVerificationCode> aRevokedVerificationCodes) Constructor that takes the requirement created date attribute value and the optional list of revoked VerificationCode's. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevokedVerificationCode(RevokedVerificationCode aRevokedVerificationCode) Adds a revokedVerificationCodeto the list of revokedVerificationCode's.clone()CloneVerificationCodeRevocationList.voiddecode(InputStream aVerificationCodeRevocationListStream) Decodes the Verification Code Revocation List from anInputStream.voidDecodes the Verification Code Revocation List from aString.encode()Encodes the Verification Code Revocation List to aString.booleanimplements a deepVerificationCodeRevocationListcompare.Gets the datetime in UTC that the Verification Code Revocation List was created.Gets the list of revokedVerificationCode's.intGets the version of the Verification Code Revocation List format.booleanisRevoked(EPPSignedCode aVerificationCode) Is the passed verification code revoked?voidsetCreatedDate(Date aCreatedDate) Sets the datetime in UTC that the Verification Code Revocation List was created.voidsetRevokedVerificationCodes(List<RevokedVerificationCode> aRevokedVerificationCodes) Sets the list of revokedVerificationCode's.voidsetVersion(int aVersion) Sets the version of the Verification Code Revocation List format.toString()Implementation ofObject.toString, which will result in the full Verification OCode revocation list being converted to aString.
-
Field Details
-
DEFAULT_VERSION
public static final int DEFAULT_VERSIONDefault value of theversionattribute.- See Also:
-
-
Constructor Details
-
VerificationCodeRevocationList
public VerificationCodeRevocationList()Default constructor. The createdDate must be set prior to calling theencode()method. -
VerificationCodeRevocationList
Constructor that takes the requirement attribute value. The version defaults to theDEFAULT_VERSIONvalue, and the removed VerificationCode list defaults to an empty list.- Parameters:
aCreatedDate- Datetime in UTC that the Verification Code Revocation List was created.
-
VerificationCodeRevocationList
public VerificationCodeRevocationList(Date aCreatedDate, List<RevokedVerificationCode> aRevokedVerificationCodes) Constructor that takes the requirement created date attribute value and the optional list of revoked VerificationCode's. The version defaults to theDEFAULT_VERSIONvalue.- Parameters:
aCreatedDate- Datetime in UTC that the Verification Code Revocation List was created.aRevokedVerificationCodes- List of revoked VerificationCode's
-
-
Method Details
-
getVersion
public int getVersion()Gets the version of the Verification Code Revocation List format.- Returns:
- Version of the Verification Code Revocation List format with the
default of
DEFAULT_VERSION.
-
setVersion
public void setVersion(int aVersion) Sets the version of the Verification Code Revocation List format.- Parameters:
aVersion- Version of the Verification Code Revocation List format
-
getCreatedDate
Gets the datetime in UTC that the Verification Code Revocation List was created.- Returns:
- Datetime in UTC that the Verification Code Revocation List was created.
-
setCreatedDate
Sets the datetime in UTC that the Verification Code Revocation List was created.- Parameters:
aCreatedDate- Datetime in UTC that the Verification Code Revocation List was created.
-
getRevokedVerificationCodes
Gets the list of revokedVerificationCode's.- Returns:
- List of revoked
VerificationCode's
-
setRevokedVerificationCodes
Sets the list of revokedVerificationCode's.- Parameters:
aRevokedVerificationCodes- List of revokedVerificationCode's
-
addRevokedVerificationCode
Adds a revokedVerificationCodeto the list of revokedVerificationCode's.- Parameters:
aRevokedVerificationCode- RevokedVerificationCodeto add to the list of revokedVerificationCode's
-
isRevoked
Is the passed verification code revoked?- Parameters:
aVerificationCode- Signed mark to check if revoked.- Returns:
trueif the signed mark is revoked;falseotherwise.
-
encode
Encodes the Verification Code Revocation List to aString.- Returns:
- Encoded Verification Code Revocation List
- Throws:
EPPEncodeException- Error encoding the Verification Code Revocation List.
-
decode
Decodes the Verification Code Revocation List from aString.- Parameters:
aVerificationCodeRevocationListStr- String containing the full Verification Code Revocation List.- Throws:
EPPDecodeException- Error decoding the Verification Code Revocation List
-
decode
Decodes the Verification Code Revocation List from anInputStream.- Parameters:
aVerificationCodeRevocationListStream-InputStreamcontaining the full Verification Code Revocation List.- Throws:
EPPDecodeException- Error decoding the Verification Code Revocation List
-
clone
CloneVerificationCodeRevocationList.- Overrides:
clonein classObject- Returns:
- clone of
VerificationCodeRevocationList - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepVerificationCodeRevocationListcompare. -
toString
Implementation ofObject.toString, which will result in the full Verification OCode revocation list being converted to aString. If there is an error encoding the Revocation List, aRuntimeExceptionis thrown.
-