src/java.base/share/classes/java/security/cert/CertificateRevokedException.java
changeset 57950 4612a3cfb927
parent 47418 6993f9f1ff83
equal deleted inserted replaced
57945:e09c993ac476 57950:4612a3cfb927
     1 /*
     1 /*
     2  * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 2019, 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
    48  * @since 1.7
    48  * @since 1.7
    49  * @see CertPathValidatorException
    49  * @see CertPathValidatorException
    50  */
    50  */
    51 public class CertificateRevokedException extends CertificateException {
    51 public class CertificateRevokedException extends CertificateException {
    52 
    52 
       
    53     @java.io.Serial
    53     private static final long serialVersionUID = 7839996631571608627L;
    54     private static final long serialVersionUID = 7839996631571608627L;
    54 
    55 
    55     /**
    56     /**
    56      * @serial the date on which the certificate was revoked
    57      * @serial the date on which the certificate was revoked
    57      */
    58      */
   189      * the extensions in the map, in no particular order. For each extension,
   190      * the extensions in the map, in no particular order. For each extension,
   190      * the following data is emitted: the OID String (Object), the criticality
   191      * the following data is emitted: the OID String (Object), the criticality
   191      * flag (boolean), the length of the encoded extension value byte array
   192      * flag (boolean), the length of the encoded extension value byte array
   192      * (int), and the encoded extension value bytes.
   193      * (int), and the encoded extension value bytes.
   193      */
   194      */
       
   195     @java.io.Serial
   194     private void writeObject(ObjectOutputStream oos) throws IOException {
   196     private void writeObject(ObjectOutputStream oos) throws IOException {
   195         // Write out the non-transient fields
   197         // Write out the non-transient fields
   196         // (revocationDate, reason, authority)
   198         // (revocationDate, reason, authority)
   197         oos.defaultWriteObject();
   199         oos.defaultWriteObject();
   198 
   200 
   215     }
   217     }
   216 
   218 
   217     /**
   219     /**
   218      * Deserialize the {@code CertificateRevokedException} instance.
   220      * Deserialize the {@code CertificateRevokedException} instance.
   219      */
   221      */
       
   222     @java.io.Serial
   220     private void readObject(ObjectInputStream ois)
   223     private void readObject(ObjectInputStream ois)
   221         throws IOException, ClassNotFoundException {
   224         throws IOException, ClassNotFoundException {
   222         // Read in the non-transient fields
   225         // Read in the non-transient fields
   223         // (revocationDate, reason, authority)
   226         // (revocationDate, reason, authority)
   224         ois.defaultReadObject();
   227         ois.defaultReadObject();