CertificateNotYetValidException.java revision 51b1b6997fd3f980076b8081f7f1165ccc2a4008
1a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh/*
2a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
3a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh *
5a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * This code is free software; you can redistribute it and/or modify it
6a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * under the terms of the GNU General Public License version 2 only, as
7a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * published by the Free Software Foundation.  Oracle designates this
8a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * particular file as subject to the "Classpath" exception as provided
9a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * by Oracle in the LICENSE file that accompanied this code.
10a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh *
11a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * This code is distributed in the hope that it will be useful, but WITHOUT
12a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * version 2 for more details (a copy is included in the LICENSE file that
15a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * accompanied this code).
16a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh *
17a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * You should have received a copy of the GNU General Public License version
18a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * 2 along with this work; if not, write to the Free Software Foundation,
19a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh *
21a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * or visit www.oracle.com if you need additional information or have any
23a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * questions.
24a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh */
25a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh
26a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntoshpackage java.security.cert;
27a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh
28a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh/**
29a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * Certificate is not yet valid exception. This is thrown whenever
30a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * the current <code>Date</code> or the specified <code>Date</code>
31a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * is before the <code>notBefore</code> date/time in the Certificate
32a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * validity period.
33a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh *
34a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh * @author Hemma Prafullchandra
35a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh */
36a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntoshpublic class CertificateNotYetValidException extends CertificateException {
37a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh
38a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    static final long serialVersionUID = 4355919900041064702L;
39a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh
40a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    /**
41a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * Constructs a CertificateNotYetValidException with no detail message. A
42a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * detail message is a String that describes this particular
43a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * exception.
44a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     */
45a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    public CertificateNotYetValidException() {
46a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh        super();
47a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    }
48a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh
49a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    /**
50a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * Constructs a CertificateNotYetValidException with the specified detail
51a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * message. A detail message is a String that describes this
52a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * particular exception.
53a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     *
54a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     * @param message the detail message.
55a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh     */
56a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    public CertificateNotYetValidException(String message) {
57a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh        super(message);
58a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh    }
59a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh}
60a9dcbe04ff330ef8297191d19951d4a313b2115aNeil MacIntosh