MCPcopy Index your code
hub / github.com/bcgit/bc-java / X509CRLSelector

Class X509CRLSelector

core/src/main/jdk1.1/java/security/cert/X509CRLSelector.java:60–717  ·  view source on GitHub ↗

A CRLSelector that selects X509CRLs that match all specified criteria. This class is particularly useful when selecting CRLs from a CertStore to check revocation status of a particular certificate. When first constructed, an X509CRLSelector</

Source from the content-addressed store, hash-verified

58 * @see X509CRL
59 */
60public class X509CRLSelector implements CRLSelector
61{
62 private Set issuerNames = null;
63
64 private Set issuerNamesX509 = null;
65
66 private BigInteger minCRL = null;
67
68 private BigInteger maxCRL = null;
69
70 private Date dateAndTime = null;
71
72 private X509Certificate certChecking = null;
73
74 /**
75 * Creates an <code>X509CRLSelector</code>. Initially, no criteria are
76 * set so any <code>X509CRL</code> will match.
77 */
78 public X509CRLSelector()
79 {
80 }
81
82 /**
83 * Sets the issuerNames criterion. The issuer distinguished name in the
84 * <code>X509CRL</code> must match at least one of the specified
85 * distinguished names. If <code>null</code>, any issuer distinguished
86 * name will do.<br />
87 * <br />
88 * This method allows the caller to specify, with a single method call, the
89 * complete set of issuer names which <code>X509CRLs</code> may contain.
90 * The specified value replaces the previous value for the issuerNames
91 * criterion.<br />
92 * <br />
93 * The <code>names</code> parameter (if not <code>null</code>) is a
94 * <code>Collection</code> of names. Each name is a <code>String</code>
95 * or a byte array representing a distinguished name (in RFC 2253 or ASN.1
96 * DER encoded form, respectively). If <code>null</code> is supplied as
97 * the value for this argument, no issuerNames check will be performed.<br />
98 * <br />
99 * Note that the <code>names</code> parameter can contain duplicate
100 * distinguished names, but they may be removed from the
101 * <code>Collection</code> of names returned by the
102 * {@link #getIssuerNames getIssuerNames} method.<br />
103 * <br />
104 * If a name is specified as a byte array, it should contain a single DER
105 * encoded distinguished name, as defined in X.501. The ASN.1 notation for
106 * this structure is as follows.
107 *
108 * <pre><code>
109 * Name ::= CHOICE {
110 * RDNSequence }
111 *
112 * RDNSequence ::= SEQUENCE OF RDN
113 *
114 * RDN ::=
115 * SET SIZE (1 .. MAX) OF AttributeTypeAndValue
116 *
117 * AttributeTypeAndValue ::= SEQUENCE {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected