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