< prev index next >

src/java.base/share/classes/java/security/cert/X509CRLEntry.java

Print this page




  45  * }  OPTIONAL
  46  *
  47  * CertificateSerialNumber  ::=  INTEGER
  48  *
  49  * Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension
  50  *
  51  * Extension  ::=  SEQUENCE  {
  52  *     extnId        OBJECT IDENTIFIER,
  53  *     critical      BOOLEAN DEFAULT FALSE,
  54  *     extnValue     OCTET STRING
  55  *                   -- contains a DER encoding of a value
  56  *                   -- of the type registered for use with
  57  *                   -- the extnId object identifier value
  58  * }
  59  * </pre>
  60  *
  61  * @see X509CRL
  62  * @see X509Extension
  63  *
  64  * @author Hemma Prafullchandra

  65  */
  66 
  67 public abstract class X509CRLEntry implements X509Extension {
  68 
  69     /**
  70      * Compares this CRL entry for equality with the given
  71      * object. If the {@code other} object is an
  72      * {@code instanceof} {@code X509CRLEntry}, then
  73      * its encoded form (the inner SEQUENCE) is retrieved and compared
  74      * with the encoded form of this CRL entry.
  75      *
  76      * @param other the object to test for equality with this CRL entry.
  77      * @return true iff the encoded forms of the two CRL entries
  78      * match, false otherwise.
  79      */
  80     public boolean equals(Object other) {
  81         if (this == other)
  82             return true;
  83         if (!(other instanceof X509CRLEntry))
  84             return false;




  45  * }  OPTIONAL
  46  *
  47  * CertificateSerialNumber  ::=  INTEGER
  48  *
  49  * Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension
  50  *
  51  * Extension  ::=  SEQUENCE  {
  52  *     extnId        OBJECT IDENTIFIER,
  53  *     critical      BOOLEAN DEFAULT FALSE,
  54  *     extnValue     OCTET STRING
  55  *                   -- contains a DER encoding of a value
  56  *                   -- of the type registered for use with
  57  *                   -- the extnId object identifier value
  58  * }
  59  * </pre>
  60  *
  61  * @see X509CRL
  62  * @see X509Extension
  63  *
  64  * @author Hemma Prafullchandra
  65  * @since 1.2
  66  */
  67 
  68 public abstract class X509CRLEntry implements X509Extension {
  69 
  70     /**
  71      * Compares this CRL entry for equality with the given
  72      * object. If the {@code other} object is an
  73      * {@code instanceof} {@code X509CRLEntry}, then
  74      * its encoded form (the inner SEQUENCE) is retrieved and compared
  75      * with the encoded form of this CRL entry.
  76      *
  77      * @param other the object to test for equality with this CRL entry.
  78      * @return true iff the encoded forms of the two CRL entries
  79      * match, false otherwise.
  80      */
  81     public boolean equals(Object other) {
  82         if (this == other)
  83             return true;
  84         if (!(other instanceof X509CRLEntry))
  85             return false;


< prev index next >