26 package java.security.cert;
27
28 import java.net.URI;
29
30 /**
31 * Parameters used as input for {@code CertStore} algorithms which use
32 * information contained in a URI to retrieve certificates and CRLs.
33 * <p>
34 * This class is used to provide necessary configuration parameters
35 * through a URI as defined in RFC 5280 to implementations of
36 * {@code CertStore} algorithms.
37 * <p>
38 * <b>Concurrent Access</b>
39 * <p>
40 * Unless otherwise specified, the methods defined in this class are not
41 * thread-safe. Multiple threads that need to access a single
42 * object concurrently should synchronize amongst themselves and
43 * provide the necessary locking. Multiple threads each manipulating
44 * separate objects need not synchronize.
45 *
46 * @since 1.9
47 * @see CertStore
48 * @see java.net.URI
49 */
50 public final class URICertStoreParameters implements CertStoreParameters {
51
52 /**
53 * The uri, cannot be null
54 */
55 private final URI uri;
56
57 /*
58 * Hash code for this parameters.
59 */
60 private int myhash = -1;
61
62 /**
63 * Creates an instance of {@code URICertStoreParameters} with the
64 * specified URI.
65 *
66 * @param uri the URI which contains configuration information.
|
26 package java.security.cert;
27
28 import java.net.URI;
29
30 /**
31 * Parameters used as input for {@code CertStore} algorithms which use
32 * information contained in a URI to retrieve certificates and CRLs.
33 * <p>
34 * This class is used to provide necessary configuration parameters
35 * through a URI as defined in RFC 5280 to implementations of
36 * {@code CertStore} algorithms.
37 * <p>
38 * <b>Concurrent Access</b>
39 * <p>
40 * Unless otherwise specified, the methods defined in this class are not
41 * thread-safe. Multiple threads that need to access a single
42 * object concurrently should synchronize amongst themselves and
43 * provide the necessary locking. Multiple threads each manipulating
44 * separate objects need not synchronize.
45 *
46 * @since 9
47 * @see CertStore
48 * @see java.net.URI
49 */
50 public final class URICertStoreParameters implements CertStoreParameters {
51
52 /**
53 * The uri, cannot be null
54 */
55 private final URI uri;
56
57 /*
58 * Hash code for this parameters.
59 */
60 private int myhash = -1;
61
62 /**
63 * Creates an instance of {@code URICertStoreParameters} with the
64 * specified URI.
65 *
66 * @param uri the URI which contains configuration information.
|