~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to jdk1.1/java/security/cert/CertPathBuilderResult.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package java.security.cert;
 
2
 
 
3
/**
 
4
 * A specification of the result of a certification path builder algorithm.
 
5
 * All results returned by the {@link CertPathBuilder#build CertPathBuilder.build} method
 
6
 * must implement this interface.<br />
 
7
 * <br />
 
8
 * At a minimum, a CertPathBuilderResult contains the CertPath built by the
 
9
 * CertPathBuilder instance. Implementations of this interface may add methods
 
10
 * to return implementation or algorithm specific information, such as
 
11
 * debugging information or certification path validation results.<br />
 
12
 * <br />
 
13
 * <strong>Concurrent Access</strong><br />
 
14
 * <br />
 
15
 * Unless otherwise specified, the methods defined in this interface are not
 
16
 * thread-safe. Multiple threads that need to access a single object
 
17
 * concurrently should synchronize amongst themselves and provide the
 
18
 * necessary locking. Multiple threads each manipulating separate objects
 
19
 * need not synchronize. 
 
20
 **/
 
21
public interface CertPathBuilderResult extends Cloneable
 
22
{
 
23
    /**
 
24
     * Returns the built certification path.
 
25
     *
 
26
     * @return the certification path (never <code>null</code>)
 
27
     */
 
28
    public CertPath getCertPath();
 
29
 
 
30
    /**
 
31
     * Makes a copy of this <code>CertPathBuilderResult</code>.
 
32
     * Changes to the copy will not affect the original and vice
 
33
     * versa.
 
34
     *
 
35
     * @return a copy of this CertPathBuilderResult
 
36
     */
 
37
    public Object clone();
 
38
}