API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. CertStoreParameters View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

/*
 * @(#)CertStoreParameters.java	1.6 05/11/17
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package java.security.cert;

/**
 * A specification of <code>CertStore</code> parameters.
 * <p>
 * The purpose of this interface is to group (and provide type safety for) 
 * all <code>CertStore</code> parameter specifications. All 
 * <code>CertStore</code> parameter specifications must implement this 
 * interface.  
 * <p>
 * Typically, a <code>CertStoreParameters</code> object is passed as a parameter
 * to one of the {@link CertStore#getInstance CertStore.getInstance} methods. 
 * The <code>getInstance</code> method returns a <code>CertStore</code> that
 * is used for retrieving <code>Certificate</code>s and <code>CRL</code>s. The 
 * <code>CertStore</code> that is returned is initialized with the specified 
 * parameters. The type of parameters needed may vary between different types 
 * of <code>CertStore</code>s.
 *
 * @see CertStore#getInstance
 *
 * @version 	1.6 11/17/05
 * @since	1.4
 * @author	Steve Hanna
 */
public interface CertStoreParameters extends Cloneable {

    /**
     * Makes a copy of this <code>CertStoreParameters</code>.
     * <p>
     * The precise meaning of "copy" may depend on the class of 
     * the <code>CertStoreParameters</code> object. A typical implementation 
     * performs a "deep copy" of this object, but this is not an absolute 
     * requirement. Some implementations may perform a "shallow copy" of some 
     * or all of the fields of this object. 
     * <p>
     * Note that the <code>CertStore.getInstance</code> methods make a copy
     * of the specified <code>CertStoreParameters</code>. A deep copy
     * implementation of <code>clone</code> is safer and more robust, as it 
     * prevents the caller from corrupting a shared <code>CertStore</code> by
     * subsequently modifying the contents of its initialization parameters. 
     * However, a shallow copy implementation of <code>clone</code> is more 
     * appropriate for applications that need to hold a reference to a
     * parameter contained in the <code>CertStoreParameters</code>. For example,
     * a shallow copy clone allows an application to release the resources of 
     * a particular <code>CertStore</code> initialization parameter immediately,
     * rather than waiting for the garbage collection mechanism. This should 
     * be done with the utmost care, since the <code>CertStore</code> may still 
     * be in use by other threads. 
     * <p>
     * Each subclass should state the precise behavior of this method so
     * that users and developers know what to expect.
     *
     * @return a copy of this <code>CertStoreParameters</code>
     */
    Object clone();
}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar