Lines Matching refs:selector

181      * Tests if CRLs with any issuers match the selector in the case of
182 * null issuerNames criteria, if specified issuers match the selector,
183 * and if not specified issuer does not match the selector.
186 X509CRLSelector selector = new X509CRLSelector();
194 selector.setIssuers(null);
196 selector.match(crl1) && selector.match(crl2));
201 selector.setIssuers(issuers);
203 selector.match(crl1) && selector.match(crl2));
205 selector.match(crl3));
208 + "against the modifications.", selector.match(crl3));
213 * Tests if CRLs with any issuers match the selector in the case of
214 * null issuerNames criteria, if specified issuers match the selector,
215 * if not specified issuer does not match the selector, and if the
219 X509CRLSelector selector = new X509CRLSelector();
231 selector.setIssuerNames(null);
237 selector.match(crl1) && selector.match(crl2));
243 selector.setIssuerNames(issuers);
249 selector.match(crl1) && selector.match(crl2));
251 selector.match(crl3));
254 + "against the modifications.", selector.match(crl3));
259 * Tests if CRLs with specified issuers match the selector,
260 * and if not specified issuer does not match the selector.
263 X509CRLSelector selector = new X509CRLSelector();
269 selector.addIssuer(iss1);
271 selector.match(crl1));
273 selector.match(crl2));
274 selector.addIssuer(iss2);
276 selector.match(crl2));
281 * Tests if CRLs with specified issuers match the selector,
282 * and if not specified issuer does not match the selector.
285 X509CRLSelector selector = new X509CRLSelector();
292 selector.addIssuerName(iss1);
298 selector.match(crl1));
300 selector.match(crl2));
302 selector.addIssuerName(iss2);
308 selector.match(crl2));
313 * Tests if CRLs with specified issuers match the selector,
314 * and if not specified issuer does not match the selector.
317 X509CRLSelector selector = new X509CRLSelector();
330 selector.addIssuerName(iss1);
336 selector.match(crl1));
338 selector.match(crl2));
340 selector.addIssuerName(iss2);
346 selector.match(crl2));
351 * Tests if CRLs with any crl number value match the selector in the case of
352 * null crlNumber criteria, if specified minCRL value matches the selector,
353 * and if CRL with inappropriate crlNumber value does not match the selector.
356 X509CRLSelector selector = new X509CRLSelector();
360 selector.setMinCRLNumber(null);
362 selector.match(crl));
363 selector.setMinCRLNumber(minCRL);
365 selector.match(crl));
366 selector.setMinCRLNumber(new BigInteger("10001"));
368 selector.match(crl));
373 * Tests if CRLs with any crl number value match the selector in the case of
374 * null crlNumber criteria, if specified maxCRL value matches the selector,
375 * and if CRL with inappropriate crlNumber value does not match the selector.
378 X509CRLSelector selector = new X509CRLSelector();
382 selector.setMaxCRLNumber(null);
384 selector.match(crl));
385 selector.setMaxCRLNumber(maxCRL);
387 selector.match(crl));
388 selector.setMaxCRLNumber(new BigInteger("9999"));
390 selector.match(crl));
395 * Tests if CRLs with any update dates match the selector in the case of
397 * do not match the selector.
400 X509CRLSelector selector = new X509CRLSelector();
402 selector.setDateAndTime(null);
404 selector.match(crl));
405 selector.setDateAndTime(new Date(200));
407 selector.match(crl));
408 selector.setDateAndTime(new Date(250));
410 selector.match(crl));
411 selector.setDateAndTime(new Date(300));
413 selector.match(crl));
414 selector.setDateAndTime(new Date(150));
416 selector.match(crl));
417 selector.setDateAndTime(new Date(350));
419 selector.match(crl));
429 X509CRLSelector selector = new X509CRLSelector();
437 selector.getIssuers());
438 selector.addIssuerName(iss_name_1);
439 selector.addIssuer(iss1);
440 selector.addIssuerName(iss_name_2);
441 selector.addIssuer(iss2);
442 selector.addIssuerName(iss_name_3);
444 Collection result = selector.getIssuers();
460 selector.addIssuer(iss3);
471 X509CRLSelector selector = new X509CRLSelector();
481 selector.getIssuerNames());
483 selector.addIssuerName(iss1);
484 selector.addIssuerName(iss2);
489 Collection result = selector.getIssuerNames();
500 X509CRLSelector selector = new X509CRLSelector();
502 selector.getMinCRL());
504 selector.setMinCRLNumber(minCRL);
506 minCRL.equals(selector.getMinCRL()));
515 X509CRLSelector selector = new X509CRLSelector();
517 selector.getMaxCRL());
519 selector.setMaxCRLNumber(maxCRL);
521 maxCRL.equals(selector.getMaxCRL()));
530 X509CRLSelector selector = new X509CRLSelector();
532 selector.getDateAndTime());
534 selector.setDateAndTime(date);
536 date.equals(selector.getDateAndTime()));
541 * Tests if the null object matches to the selector or not.
544 X509CRLSelector selector = new X509CRLSelector();
546 selector.match((X509CRL) null));
551 * Tests if the selector is cloned correctly: the crl which matche to
552 * the initial selector should match to the clone and the change of clone
553 * should not cause the change of initial selector.
556 X509CRLSelector selector = new X509CRLSelector();
564 selector.addIssuer(iss1);
565 selector.addIssuer(iss2);
566 selector.setMinCRLNumber(minCRL);
567 selector.setMaxCRLNumber(maxCRL);
568 selector.setDateAndTime(date);
570 X509CRLSelector clone = (X509CRLSelector) selector.clone();
574 assertTrue("The specified CRL should match the clone selector.",
575 selector.match(crl));
578 assertFalse("The changes of the clone selector should not cause "
580 selector.getIssuerNames().size() == 3);
584 X509CRLSelector selector = new X509CRLSelector();
591 selector.addIssuer(iss1);
592 selector.addIssuer(iss2);
593 selector.setMinCRLNumber(minCRL);
594 selector.setMaxCRLNumber(maxCRL);
595 selector.setDateAndTime(date);
597 assertNotNull("The result should not be null.", selector.toString());