View Javadoc
1 package jsdsi; 2 3 /*** 4 * Selects all certificates whose subject is the given subject. 5 * 6 * @author Sameer Ajmani 7 * @version $Revision: 1.2.6.1 $ $Date: 2005/11/08 03:12:52 $ 8 */ 9 public class SubjectCertSelector extends CertSelector { 10 Subject subject; 11 12 /*** 13 * Creates a new <code>SubjectCertSelector</code> that matches 14 * <code>s</code>. 15 */ 16 public SubjectCertSelector(Subject s) { 17 subject = s; 18 } 19 20 /*** 21 * @see java.lang.Object#clone() 22 */ 23 public Object clone() { 24 return new SubjectCertSelector(subject); 25 } 26 27 /*** 28 * @see java.security.cert.CertSelector#match(Certificate) 29 */ 30 public boolean match(jsdsi.Certificate cert) { 31 return cert.getCert().getSubject().equals(subject); 32 } 33 34 /*** 35 * @return this.subject 36 */ 37 public Subject getSubject() { 38 return subject; 39 } 40 }

This page was automatically generated by Maven