151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski/* 26f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * This code is free software; you can redistribute it and/or modify it 651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * under the terms of the GNU General Public License version 2 only, as 751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * published by the Free Software Foundation. Oracle designates this 851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * particular file as subject to the "Classpath" exception as provided 951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * by Oracle in the LICENSE file that accompanied this code. 1051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 1151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * This code is distributed in the hope that it will be useful, but WITHOUT 1251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * version 2 for more details (a copy is included in the LICENSE file that 1551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * accompanied this code). 1651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 1751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * You should have received a copy of the GNU General Public License version 1851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 2 along with this work; if not, write to the Free Software Foundation, 1951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 2151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * or visit www.oracle.com if you need additional information or have any 2351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * questions. 2451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 2551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 2651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebskipackage java.security.cert; 2751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 2851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski/** 2951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * A specification of the result of a certification path builder algorithm. 3051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * All results returned by the {@link CertPathBuilder#build 3151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * CertPathBuilder.build} method must implement this interface. 3251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <p> 336f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * At a minimum, a {@code CertPathBuilderResult} contains the 346f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * {@code CertPath} built by the {@code CertPathBuilder} instance. 3551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Implementations of this interface may add methods to return implementation 3651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * or algorithm specific information, such as debugging information or 3751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * certification path validation results. 3851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <p> 3951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <b>Concurrent Access</b> 4051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <p> 4151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Unless otherwise specified, the methods defined in this interface are not 4251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * thread-safe. Multiple threads that need to access a single 4351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * object concurrently should synchronize amongst themselves and 4451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * provide the necessary locking. Multiple threads each manipulating 4551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * separate objects need not synchronize. 4651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 4751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @see CertPathBuilder 4851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 4951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @since 1.4 5051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @author Sean Mullan 5151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 5251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebskipublic interface CertPathBuilderResult extends Cloneable { 5351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 5451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 5551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Returns the built certification path. 5651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 576f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * @return the certification path (never {@code null}) 5851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 5951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski CertPath getCertPath(); 6051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 6151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 626f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * Makes a copy of this {@code CertPathBuilderResult}. Changes to the 6351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * copy will not affect the original and vice versa. 6451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 656f31965522c21a5c47296b31d67cc07cb3c65748Kenny Root * @return a copy of this {@code CertPathBuilderResult} 6651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 6751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski Object clone(); 6851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski} 69