public class VerificationCodeRevocationList
extends java.lang.Object
String
,
that can be written to a file.
String
or an InputStream
.
EPPSignedCode
is revoked.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_VERSION
Default value of the
version attribute. |
Constructor and Description |
---|
VerificationCodeRevocationList()
Default constructor.
|
VerificationCodeRevocationList(java.util.Date aCreatedDate)
Constructor that takes the requirement attribute value.
|
VerificationCodeRevocationList(java.util.Date aCreatedDate,
java.util.List<RevokedVerificationCode> aRevokedVerificationCodes)
Constructor that takes the requirement created date attribute value and
the optional list of revoked VerificationCode's.
|
Modifier and Type | Method and Description |
---|---|
void |
addRevokedVerificationCode(RevokedVerificationCode aRevokedVerificationCode)
Adds a revoked
VerificationCode to the list of revoked
VerificationCode 's. |
java.lang.Object |
clone()
Clone
VerificationCodeRevocationList . |
void |
decode(java.io.InputStream aVerificationCodeRevocationListStream)
Decodes the Verification Code Revocation List from an
InputStream . |
void |
decode(java.lang.String aVerificationCodeRevocationListStr)
Decodes the Verification Code Revocation List from a
String . |
java.lang.String |
encode()
Encodes the Verification Code Revocation List to a
String . |
boolean |
equals(java.lang.Object aObject)
implements a deep
VerificationCodeRevocationList compare. |
java.util.Date |
getCreatedDate()
Gets the datetime in UTC that the Verification Code Revocation List was
created.
|
java.util.List<RevokedVerificationCode> |
getRevokedVerificationCodes()
Gets the list of revoked
VerificationCode 's. |
int |
getVersion()
Gets the version of the Verification Code Revocation List format.
|
boolean |
isRevoked(EPPSignedCode aVerificationCode)
Is the passed verification code revoked?
|
void |
setCreatedDate(java.util.Date aCreatedDate)
Sets the datetime in UTC that the Verification Code Revocation List was
created.
|
void |
setRevokedVerificationCodes(java.util.List<RevokedVerificationCode> aRevokedVerificationCodes)
Sets the list of revoked
VerificationCode 's. |
void |
setVersion(int aVersion)
Sets the version of the Verification Code Revocation List format.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in the
full Verification OCode revocation list being converted to a
String . |
public static final int DEFAULT_VERSION
version
attribute.public VerificationCodeRevocationList()
encode()
method.public VerificationCodeRevocationList(java.util.Date aCreatedDate)
DEFAULT_VERSION
value, and the removed
VerificationCode list defaults to an empty list.aCreatedDate
- Datetime in UTC that the Verification Code Revocation List was
created.public VerificationCodeRevocationList(java.util.Date aCreatedDate, java.util.List<RevokedVerificationCode> aRevokedVerificationCodes)
DEFAULT_VERSION
value.aCreatedDate
- Datetime in UTC that the Verification Code Revocation List was
created.aRevokedVerificationCodes
- List of revoked VerificationCode'spublic int getVersion()
DEFAULT_VERSION
.public void setVersion(int aVersion)
aVersion
- Version of the Verification Code Revocation List formatpublic java.util.Date getCreatedDate()
public void setCreatedDate(java.util.Date aCreatedDate)
aCreatedDate
- Datetime in UTC that the Verification Code Revocation List was
created.public java.util.List<RevokedVerificationCode> getRevokedVerificationCodes()
VerificationCode
's.VerificationCode
'spublic void setRevokedVerificationCodes(java.util.List<RevokedVerificationCode> aRevokedVerificationCodes)
VerificationCode
's.aRevokedVerificationCodes
- List of revoked VerificationCode
'spublic void addRevokedVerificationCode(RevokedVerificationCode aRevokedVerificationCode)
VerificationCode
to the list of revoked
VerificationCode
's.aRevokedVerificationCode
- Revoked VerificationCode
to add to the list of
revoked VerificationCode
'spublic boolean isRevoked(EPPSignedCode aVerificationCode)
aVerificationCode
- Signed mark to check if revoked.true
if the signed mark is revoked;
false
otherwise.public java.lang.String encode() throws EPPEncodeException
String
.EPPEncodeException
- Error encoding the Verification Code Revocation List.public void decode(java.lang.String aVerificationCodeRevocationListStr) throws EPPDecodeException
String
.aVerificationCodeRevocationListStr
- String containing the full Verification Code Revocation List.EPPDecodeException
- Error decoding the Verification Code Revocation Listpublic void decode(java.io.InputStream aVerificationCodeRevocationListStream) throws EPPDecodeException
InputStream
.aVerificationCodeRevocationListStream
- InputStream
containing the full Verification Code
Revocation List.EPPDecodeException
- Error decoding the Verification Code Revocation Listpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
VerificationCodeRevocationList
.clone
in class java.lang.Object
VerificationCodeRevocationList
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
VerificationCodeRevocationList
compare.equals
in class java.lang.Object
aObject
- VerificationCodeRevocationList
instance to
compare withpublic java.lang.String toString()
Object.toString
, which will result in the
full Verification OCode revocation list being converted to a
String
. If there is an error encoding the Revocation List, a
RuntimeException
is thrown.toString
in class java.lang.Object
Copyright © VeriSign Inc. All Rights Reserved.