14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * The contents of this file are subject to the terms
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * of the Common Development and Distribution License
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * (the License). You may not use this file except in
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * compliance with the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * You can obtain a copy of the License at
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * https://opensso.dev.java.net/public/CDDLv1.0.html or
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the License for the specific language governing
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * permission and limitations under the License.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * When distributing Covered Code, include this CDDL
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Header Notice in each file and include the License file
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * If applicable, add the following below the CDDL Header,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * with the fields enclosed by brackets [] replaced by
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * your own identifying information:
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * "Portions Copyrighted [year] [name of copyright owner]"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * $Id: CertException.java,v 1.2 2008/06/25 05:52:46 qcheng Exp $
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * CertException indicates one of a variety of certificate problems.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * @see java.security.cert.Certificate
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncpublic class CertException extends SecurityException {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync // Zero is reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync /** Indicates that the signature in the certificate is not valid. */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync /** Indicates that the certificate was revoked, and so is invalid. */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync /** Indicates that the certificate is not yet valid. */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync public static final int verf_INVALID_NOTBEFORE = 3;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync /** Indicates that the certificate has expired and so is not valid. */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Indicates that a certificate authority in the certification chain is not
return verfCode;
return moreData;
switch (verfCode) {
case verf_INVALID_SIG:
case verf_INVALID_REVOKED:
case verf_INVALID_NOTBEFORE:
case verf_INVALID_EXPIRED:
case verf_CA_UNTRUSTED:
case verf_CHAIN_LENGTH:
case verf_PARSE_ERROR:
case err_CONSTRUCTION:
case err_INVALID_PUBLIC_KEY:
case err_INVALID_VERSION:
case err_INVALID_FORMAT:
case err_ENCODING:
return getVerfDescription()