1 package jsdsi;
2
3 /***
4 * Selects all certificates issued by the given principal.
5 *
6 * @author Sameer Ajmani
7 * @version $Revision: 1.1.6.1 $ $Date: 2005/11/08 03:12:52 $
8 */
9 public class IssuerCertSelector extends CertSelector {
10 private final Principal issuer;
11
12 /***
13 * Creates a new <code>IssuerCertSelector</code> that matches
14 * certificates issued by <code>i</code>.
15 */
16 public IssuerCertSelector(Principal i) {
17 issuer = i;
18 }
19
20 /***
21 * @see java.lang.Object#clone()
22 */
23 public Object clone() {
24 return new IssuerCertSelector(issuer);
25 }
26
27 /***
28 * @return true if cert's issuer is the same principal as this.issuer.
29 *
30 * @see java.security.cert.CertSelector#match(Certificate)
31 */
32 public boolean match(jsdsi.Certificate cert) {
33 return cert.getCert().getIssuer().samePrincipalAs(issuer);
34 }
35
36 /***
37 * @return this.issuer
38 */
39 public Principal getIssuer() {
40 return issuer;
41 }
42 }
This page was automatically generated by Maven