src/java.base/share/classes/sun/security/validator/ValidatorException.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 47216 71c04702a3d5
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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
    33  *
    33  *
    34  * @author Andreas Sterbenz
    34  * @author Andreas Sterbenz
    35  */
    35  */
    36 public class ValidatorException extends CertificateException {
    36 public class ValidatorException extends CertificateException {
    37 
    37 
       
    38     @java.io.Serial
    38     private static final long serialVersionUID = -2836879718282292155L;
    39     private static final long serialVersionUID = -2836879718282292155L;
    39 
    40 
    40     public static final Object T_NO_TRUST_ANCHOR =
    41     public static final Object T_NO_TRUST_ANCHOR =
    41         "No trusted certificate found";
    42         "No trusted certificate found";
    42 
    43 
    59         "Certificate signature algorithm disabled";
    60         "Certificate signature algorithm disabled";
    60 
    61 
    61     public static final Object T_UNTRUSTED_CERT =
    62     public static final Object T_UNTRUSTED_CERT =
    62         "Untrusted certificate";
    63         "Untrusted certificate";
    63 
    64 
       
    65     @SuppressWarnings("serial") // Not statically typed as Serializable
    64     private Object type;
    66     private Object type;
    65     private X509Certificate cert;
    67     private X509Certificate cert;
    66 
    68 
    67     public ValidatorException(String msg) {
    69     public ValidatorException(String msg) {
    68         super(msg);
    70         super(msg);