Class SMDRevocationList
java.lang.Object
com.verisign.epp.codec.signedMark.SMDRevocationList
Class that holds the attributes for a Signed Mark Data (SMD) Revocation List
and provides the following:
- Encode the SMD Revocation List to a
String, that can be written to a file. - Decode the SMD Revocation List from a
Stringor anInputStream. - Check if a specific
EPPSignedMarkis revoked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value of theversionattribute. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SMDRevocationList(Date aCreatedDate) Constructor that takes the requirement attribute value.SMDRevocationList(Date aCreatedDate, List<RevokedSMD> aRevokedSMDs) Constructor that takes the requirement created date attribute value and the optional list of revoked SMD's. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevokedSMD(RevokedSMD aRevokedSMD) Adds a revoked SMD to the list of revoked SMD's.clone()CloneSMDRevocationList.voiddecode(InputStream aSMDRevocationListStream) Decodes the SMD Revocation List from anInputStream.voidDecodes the SMD Revocation List from aString.encode()Encodes the SMD Revocation List to aString.booleanimplements a deepSMDRevocationListcompare.Gets the datetime in UTC that the SMD Revocation List was created.Gets the list of revoked SMD's.intGets the version of the SMD Revocation List format.booleanisRevoked(EPPSignedMark aSignedMark) Is the passed signed mark revoked?voidsetCreatedDate(Date aCreatedDate) Sets the datetime in UTC that the SMD Revocation List was created.voidsetRevokedSMDs(List<RevokedSMD> aRevokedSMDs) Sets the list of revoked SMD's.voidsetVersion(int aVersion) Sets the version of the SMD Revocation List format.toString()Implementation ofObject.toString, which will result in the full SMD revocation list being converted to aString.
-
Field Details
-
DEFAULT_VERSION
public static final int DEFAULT_VERSIONDefault value of theversionattribute.- See Also:
-
-
Constructor Details
-
SMDRevocationList
public SMDRevocationList()Default constructor. The createdDate must be set prior to calling theencode()method. -
SMDRevocationList
Constructor that takes the requirement attribute value. The version defaults to theDEFAULT_VERSIONvalue, and the removed SMD list defaults to an empty list.- Parameters:
aCreatedDate- Datetime in UTC that the SMD Revocation List was created.
-
SMDRevocationList
Constructor that takes the requirement created date attribute value and the optional list of revoked SMD's. The version defaults to theDEFAULT_VERSIONvalue.- Parameters:
aCreatedDate- Datetime in UTC that the SMD Revocation List was created.aRevokedSMDs- List of revoked SMD's
-
-
Method Details
-
getVersion
public int getVersion()Gets the version of the SMD Revocation List format.- Returns:
- Version of the SMD Revocation List format with the default of
DEFAULT_VERSION.
-
setVersion
public void setVersion(int aVersion) Sets the version of the SMD Revocation List format.- Parameters:
aVersion- Version of the SMD Revocation List format
-
getCreatedDate
Gets the datetime in UTC that the SMD Revocation List was created.- Returns:
- Datetime in UTC that the SMD Revocation List was created.
-
setCreatedDate
Sets the datetime in UTC that the SMD Revocation List was created.- Parameters:
aCreatedDate- Datetime in UTC that the SMD Revocation List was created.
-
getRevokedSMDs
Gets the list of revoked SMD's.- Returns:
- List of revoked SMD's
-
setRevokedSMDs
Sets the list of revoked SMD's.- Parameters:
aRevokedSMDs- List of revoked SMD's
-
addRevokedSMD
Adds a revoked SMD to the list of revoked SMD's.- Parameters:
aRevokedSMD- Revoked SMD to add to the list of revoked SMD's
-
isRevoked
Is the passed signed mark revoked?- Parameters:
aSignedMark- Signed mark to check if revoked.- Returns:
trueif the signed mark is revoked;falseotherwise.
-
encode
Encodes the SMD Revocation List to aString.- Returns:
- Encoded revoked SMD Revocation List
- Throws:
EPPEncodeException- Error encoding the SMD Revocation List.
-
decode
Decodes the SMD Revocation List from aString.- Parameters:
aSMDRevocationListStr- String containing the full SMD Revocation List.- Throws:
EPPDecodeException- Error decoding the SMD Revocation List
-
decode
Decodes the SMD Revocation List from anInputStream.- Parameters:
aSMDRevocationListStream-InputStreamcontaining the full SMD Revocation List.- Throws:
EPPDecodeException- Error decoding the SMD Revocation List
-
clone
CloneSMDRevocationList.- Overrides:
clonein classObject- Returns:
- clone of
SMDRevocationList - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepSMDRevocationListcompare. -
toString
Implementation ofObject.toString, which will result in the full SMD revocation list being converted to aString. If there is an error encoding the Revocation List, aRuntimeExceptionis thrown.
-