1 package jsdsi;
2
3 import java.net.URI;
4 import java.util.Iterator;
5
6 import jsdsi.sexp.Sexp;
7 import jsdsi.sexp.SexpParseException;
8 import jsdsi.sexp.SexpUtil;
9
10 /***
11 * Checks whether a certificate appears on a revocation list.
12 *
13 * @author Sameer Ajmani
14 * @author Sean Radford
15 * @version $Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $
16 */
17 public class Revocation extends OnlineTest {
18
19 private static final long serialVersionUID = 1234467293412206221L;
20
21 /***
22 * @see jsdsi.OnlineTest#OnlineTest(Principal, URI[])
23 */
24 public Revocation(Principal p, URI[] u) {
25 super(p, u);
26 }
27
28 /***
29 * @see java.lang.Object#equals(Object)
30 */
31 public boolean equals(Object o) {
32 return (o instanceof Revocation) && super.equals(o);
33 }
34
35 /***
36 * @see java.lang.Object#hashCode()
37 */
38 public int hashCode() {
39 return super.hashCode();
40 }
41
42 String getSexpType() {
43 return "crl";
44 }
45
46 Sexp[] getSexpParts() {
47 return new Sexp[0];
48 }
49
50 static Revocation parseRevocation(Principal p, URI[] u, Iterator obody)
51 throws SexpParseException {
52 SexpUtil.checkDone(obody, "revocation"); // TODO; support s-parts
53 return new Revocation(p, u);
54 }
55 }
This page was automatically generated by Maven