Class RevokedSMD

java.lang.Object
com.verisign.epp.codec.signedMark.RevokedSMD
All Implemented Interfaces:
Serializable, Cloneable

public class RevokedSMD extends Object implements Serializable, Cloneable
A revoked Signed Mark Data (SMD) that includes the attributes:
  • Identifier of the revoked signed mark.
  • Revocation datetime in UTC of the signed mark.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    RevokedSMD(String aId, Date aRevokedDate)
    Constructor that takes the required id and revokedDate attribute values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clone RevokedSMD.
    void
    decode(String aLine)
     
    Encodes the revoked SMD attributes into a revoked SMD line.
    boolean
    equals(Object aObject)
    implements a deep RevokedSMD compare.
    Gets the identifier of the revoked signed mark.
    Gets the revocation datetime of the signed mark.
    void
    Sets the identifier of the revoked signed mark.
    void
    setRevokedDate(Date aRevokedDate)
    Sets the revocation datetime of the signed mark.
    Implementation of Object.toString, which will result in encoding the revoked SMD attributes into a revoked SMD line.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RevokedSMD

      public RevokedSMD()
      Default constructor. The id and the revokedDate attributes must be set prior to calling encode().
    • RevokedSMD

      public RevokedSMD(String aId, Date aRevokedDate)
      Constructor that takes the required id and revokedDate attribute values.
      Parameters:
      aId - Identifier of the revoked signed mark.
      aRevokedDate - Revocation datetime of the signed mark.
  • Method Details

    • getId

      public String getId()
      Gets the identifier of the revoked signed mark.
      Returns:
      Identifier of the revoked signed mark.
    • setId

      public void setId(String aId)
      Sets the identifier of the revoked signed mark.
      Parameters:
      aId - Identifier of the revoked signed mark.
    • getRevokedDate

      public Date getRevokedDate()
      Gets the revocation datetime of the signed mark.
      Returns:
      Revocation datetime of the signed mark.
    • setRevokedDate

      public void setRevokedDate(Date aRevokedDate)
      Sets the revocation datetime of the signed mark.
      Parameters:
      aRevokedDate - Revocation datetime of the signed mark.
    • encode

      public String encode() throws EPPEncodeException
      Encodes the revoked SMD attributes into a revoked SMD line.
      Returns:
      Encoded revoked SMD line
      Throws:
      EPPEncodeException - Error encoding the SMD line.
    • decode

      public void decode(String aLine) throws EPPDecodeException
      Throws:
      EPPDecodeException
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone RevokedSMD.
      Overrides:
      clone in class Object
      Returns:
      clone of RevokedSMD
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • equals

      public boolean equals(Object aObject)
      implements a deep RevokedSMD compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - RevokedSMD instance to compare with
      Returns:
      true if equal false otherwise
    • toString

      public String toString()
      Implementation of Object.toString, which will result in encoding the revoked SMD attributes into a revoked SMD line. If there is an error encoding the SMD line, a RuntimeException is thrown.
      Overrides:
      toString in class Object
      Returns:
      Encoded revoked SMD line