src/java.base/share/classes/java/security/cert/CertPathValidatorException.java
changeset 57950 4612a3cfb927
parent 47216 71c04702a3d5
equal deleted inserted replaced
57945:e09c993ac476 57950:4612a3cfb927
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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
    59  * @since       1.4
    59  * @since       1.4
    60  * @author      Yassir Elley
    60  * @author      Yassir Elley
    61  */
    61  */
    62 public class CertPathValidatorException extends GeneralSecurityException {
    62 public class CertPathValidatorException extends GeneralSecurityException {
    63 
    63 
       
    64     @java.io.Serial
    64     private static final long serialVersionUID = -3083180014971893139L;
    65     private static final long serialVersionUID = -3083180014971893139L;
    65 
    66 
    66     /**
    67     /**
    67      * @serial the index of the certificate in the certification path
    68      * @serial the index of the certificate in the certification path
    68      * that caused the exception to be thrown
    69      * that caused the exception to be thrown
   226      */
   227      */
   227     public Reason getReason() {
   228     public Reason getReason() {
   228         return this.reason;
   229         return this.reason;
   229     }
   230     }
   230 
   231 
       
   232     @java.io.Serial
   231     private void readObject(ObjectInputStream stream)
   233     private void readObject(ObjectInputStream stream)
   232         throws ClassNotFoundException, IOException {
   234         throws ClassNotFoundException, IOException {
   233         stream.defaultReadObject();
   235         stream.defaultReadObject();
   234         if (reason == null) {
   236         if (reason == null) {
   235             reason = BasicReason.UNSPECIFIED;
   237             reason = BasicReason.UNSPECIFIED;