jdk/src/share/classes/java/security/cert/X509CRLEntry.java
changeset 18551 882a3948c6e6
parent 5506 202f599c92aa
child 18592 80cdfecea074
equal deleted inserted replaced
18550:6d0f51c99930 18551:882a3948c6e6
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    66 
    66 
    67 public abstract class X509CRLEntry implements X509Extension {
    67 public abstract class X509CRLEntry implements X509Extension {
    68 
    68 
    69     /**
    69     /**
    70      * Compares this CRL entry for equality with the given
    70      * Compares this CRL entry for equality with the given
    71      * object. If the <code>other</code> object is an
    71      * object. If the {@code other} object is an
    72      * <code>instanceof</code> <code>X509CRLEntry</code>, then
    72      * {@code instanceof} {@code X509CRLEntry}, then
    73      * its encoded form (the inner SEQUENCE) is retrieved and compared
    73      * its encoded form (the inner SEQUENCE) is retrieved and compared
    74      * with the encoded form of this CRL entry.
    74      * with the encoded form of this CRL entry.
    75      *
    75      *
    76      * @param other the object to test for equality with this CRL entry.
    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
    77      * @return true iff the encoded forms of the two CRL entries
   176     /**
   176     /**
   177      * Returns the reason the certificate has been revoked, as specified
   177      * Returns the reason the certificate has been revoked, as specified
   178      * in the Reason Code extension of this CRL entry.
   178      * in the Reason Code extension of this CRL entry.
   179      *
   179      *
   180      * @return the reason the certificate has been revoked, or
   180      * @return the reason the certificate has been revoked, or
   181      *    <code>null</code> if this CRL entry does not have
   181      *    {@code null} if this CRL entry does not have
   182      *    a Reason Code extension
   182      *    a Reason Code extension
   183      * @since 1.7
   183      * @since 1.7
   184      */
   184      */
   185     public CRLReason getRevocationReason() {
   185     public CRLReason getRevocationReason() {
   186         if (!hasExtensions()) {
   186         if (!hasExtensions()) {