1 /* 2 * @(#)CRLSelector.java 1.5 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.security.cert; 9 10 /** 11 * A selector that defines a set of criteria for selecting <code>CRL</code>s. 12 * Classes that implement this interface are often used to specify 13 * which <code>CRL</code>s should be retrieved from a <code>CertStore</code>. 14 * <p> 15 * <b>Concurrent Access</b> 16 * <p> 17 * Unless otherwise specified, the methods defined in this interface are not 18 * thread-safe. Multiple threads that need to access a single 19 * object concurrently should synchronize amongst themselves and 20 * provide the necessary locking. Multiple threads each manipulating 21 * separate objects need not synchronize. 22 * 23 * @see CRL 24 * @see CertStore 25 * @see CertStore#getCRLs 26 * 27 * @version 1.5 12/19/03 28 * @author Steve Hanna 29 * @since 1.4 30 */ 31 public interface CRLSelector extends Cloneable { 32 33 /** 34 * Decides whether a <code>CRL</code> should be selected. 35 * 36 * @param crl the <code>CRL</code> to be checked 37 * @return <code>true</code> if the <code>CRL</code> should be selected, 38 * <code>false</code> otherwise 39 */ 40 boolean match(CRL crl); 41 42 /** 43 * Makes a copy of this <code>CRLSelector</code>. Changes to the 44 * copy will not affect the original and vice versa. 45 * 46 * @return a copy of this <code>CRLSelector</code> 47 */ 48 Object clone(); 49 } 50