jdk/src/share/classes/java/security/cert/CertSelector.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
    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
    29  * A selector that defines a set of criteria for selecting
    30  * <code>Certificate</code>s. Classes that implement this interface
    30  * {@code Certificate}s. Classes that implement this interface
    31  * are often used to specify which <code>Certificate</code>s should
    31  * are often used to specify which {@code Certificate}s should
    32  * be retrieved from a <code>CertStore</code>.
    32  * be retrieved from a {@code CertStore}.
    33  * <p>
    33  * <p>
    34  * <b>Concurrent Access</b>
    34  * <b>Concurrent Access</b>
    35  * <p>
    35  * <p>
    36  * Unless otherwise specified, the methods defined in this interface are not
    36  * Unless otherwise specified, the methods defined in this interface are not
    37  * thread-safe. Multiple threads that need to access a single
    37  * thread-safe. Multiple threads that need to access a single
    47  * @since       1.4
    47  * @since       1.4
    48  */
    48  */
    49 public interface CertSelector extends Cloneable {
    49 public interface CertSelector extends Cloneable {
    50 
    50 
    51     /**
    51     /**
    52      * Decides whether a <code>Certificate</code> should be selected.
    52      * Decides whether a {@code Certificate} should be selected.
    53      *
    53      *
    54      * @param   cert    the <code>Certificate</code> to be checked
    54      * @param   cert    the {@code Certificate} to be checked
    55      * @return  <code>true</code> if the <code>Certificate</code>
    55      * @return  {@code true} if the {@code Certificate}
    56      * should be selected, <code>false</code> otherwise
    56      * should be selected, {@code false} otherwise
    57      */
    57      */
    58     boolean match(Certificate cert);
    58     boolean match(Certificate cert);
    59 
    59 
    60     /**
    60     /**
    61      * Makes a copy of this <code>CertSelector</code>. Changes to the
    61      * Makes a copy of this {@code CertSelector}. Changes to the
    62      * copy will not affect the original and vice versa.
    62      * copy will not affect the original and vice versa.
    63      *
    63      *
    64      * @return a copy of this <code>CertSelector</code>
    64      * @return a copy of this {@code CertSelector}
    65      */
    65      */
    66     Object clone();
    66     Object clone();
    67 }
    67 }