jdk/src/share/classes/java/security/cert/CRLSelector.java
changeset 18551 882a3948c6e6
parent 5506 202f599c92aa
equal deleted inserted replaced
18550:6d0f51c99930 18551:882a3948c6e6
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    24  */
    24  */
    25 
    25 
    26 package java.security.cert;
    26 package java.security.cert;
    27 
    27 
    28 /**
    28 /**
    29  * A selector that defines a set of criteria for selecting <code>CRL</code>s.
    29  * A selector that defines a set of criteria for selecting {@code CRL}s.
    30  * Classes that implement this interface are often used to specify
    30  * Classes that implement this interface are often used to specify
    31  * which <code>CRL</code>s should be retrieved from a <code>CertStore</code>.
    31  * which {@code CRL}s should be retrieved from a {@code CertStore}.
    32  * <p>
    32  * <p>
    33  * <b>Concurrent Access</b>
    33  * <b>Concurrent Access</b>
    34  * <p>
    34  * <p>
    35  * Unless otherwise specified, the methods defined in this interface are not
    35  * Unless otherwise specified, the methods defined in this interface are not
    36  * thread-safe. Multiple threads that need to access a single
    36  * thread-safe. Multiple threads that need to access a single
    46  * @since       1.4
    46  * @since       1.4
    47  */
    47  */
    48 public interface CRLSelector extends Cloneable {
    48 public interface CRLSelector extends Cloneable {
    49 
    49 
    50     /**
    50     /**
    51      * Decides whether a <code>CRL</code> should be selected.
    51      * Decides whether a {@code CRL} should be selected.
    52      *
    52      *
    53      * @param   crl     the <code>CRL</code> to be checked
    53      * @param   crl     the {@code CRL} to be checked
    54      * @return  <code>true</code> if the <code>CRL</code> should be selected,
    54      * @return  {@code true} if the {@code CRL} should be selected,
    55      * <code>false</code> otherwise
    55      * {@code false} otherwise
    56      */
    56      */
    57     boolean match(CRL crl);
    57     boolean match(CRL crl);
    58 
    58 
    59     /**
    59     /**
    60      * Makes a copy of this <code>CRLSelector</code>. Changes to the
    60      * Makes a copy of this {@code CRLSelector}. Changes to the
    61      * copy will not affect the original and vice versa.
    61      * copy will not affect the original and vice versa.
    62      *
    62      *
    63      * @return a copy of this <code>CRLSelector</code>
    63      * @return a copy of this {@code CRLSelector}
    64      */
    64      */
    65     Object clone();
    65     Object clone();
    66 }
    66 }