-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCertSelector.java
More file actions
67 lines (63 loc) · 1.49 KB
/
CertSelector.java
File metadata and controls
67 lines (63 loc) · 1.49 KB
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
64
65
66
67
/*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.security.cert;
/**
* A selector that defines a set of criteria for selecting
* {@code Certificate}s. Classes that implement this interface
* are often used to specify which {@code Certificate}s should
* be retrieved from a {@code CertStore}.
* <p>
* <b>Concurrent Access</b>
* <p>
* Unless otherwise specified, the methods defined in this interface are not
* thread-safe. Multiple threads that need to access a single
* object concurrently should synchronize amongst themselves and
* provide the necessary locking. Multiple threads each manipulating
* separate objects need not synchronize.
*
* @see Certificate
* @see CertStore
* @see CertStore#getCertificates
*
* @author Steve Hanna
* @since 1.4
*/
public interface CertSelector extends Cloneable {
/**
* Decides whether a {@code Certificate} should be selected.
*
* @param cert the {@code Certificate} to be checked
* @return {@code true} if the {@code Certificate}
* should be selected, {@code false} otherwise
*/
boolean match(Certificate cert);
/**
* Makes a copy of this {@code CertSelector}. Changes to the
* copy will not affect the original and vice versa.
*
* @return a copy of this {@code CertSelector}
*/
Object clone();
}