585N/A/*
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
585N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
585N/A *
585N/A * This code is free software; you can redistribute it and/or modify it
585N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
585N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
585N/A *
585N/A * This code is distributed in the hope that it will be useful, but WITHOUT
585N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
585N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
585N/A * version 2 for more details (a copy is included in the LICENSE file that
585N/A * accompanied this code).
585N/A *
585N/A * You should have received a copy of the GNU General Public License version
585N/A * 2 along with this work; if not, write to the Free Software Foundation,
585N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
585N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
585N/A */
585N/A
585N/Apackage java.security.cert;
585N/A
585N/A/**
585N/A * The <code>PKIXReason</code> enumerates the potential PKIX-specific reasons
585N/A * that an X.509 certification path may be invalid according to the PKIX
585N/A * (RFC 3280) standard. These reasons are in addition to those of the
585N/A * <code>CertPathValidatorException.BasicReason</code> enumeration.
585N/A *
585N/A * @since 1.7
585N/A */
585N/Apublic enum PKIXReason implements CertPathValidatorException.Reason {
585N/A /**
585N/A * The certificate does not chain correctly.
585N/A */
585N/A NAME_CHAINING,
585N/A
585N/A /**
585N/A * The certificate's key usage is invalid.
585N/A */
585N/A INVALID_KEY_USAGE,
585N/A
585N/A /**
585N/A * The policy constraints have been violated.
585N/A */
585N/A INVALID_POLICY,
585N/A
585N/A /**
585N/A * No acceptable trust anchor found.
585N/A */
585N/A NO_TRUST_ANCHOR,
585N/A
585N/A /**
585N/A * The certificate contains one or more unrecognized critical
585N/A * extensions.
585N/A */
585N/A UNRECOGNIZED_CRIT_EXT,
585N/A
585N/A /**
585N/A * The certificate is not a CA certificate.
585N/A */
585N/A NOT_CA_CERT,
585N/A
585N/A /**
585N/A * The path length constraint has been violated.
585N/A */
585N/A PATH_TOO_LONG,
585N/A
585N/A /**
585N/A * The name constraints have been violated.
585N/A */
585N/A INVALID_NAME
585N/A}