View Javadoc
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 * An online test that must be performed by the verifier and is only 12 * valid at the time the test is executed. 13 * 14 * @author Sameer Ajmani 15 * @author Sean Radford 16 * @version $Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $ 17 */ 18 public class OneTime extends OnlineTest { 19 20 private static final long serialVersionUID = 4155035788039984397L; 21 22 /*** 23 * @see jsdsi.OnlineTest#OnlineTest(Principal, URI[]) 24 */ 25 public OneTime(Principal p, URI[] u) { 26 super(p, u); 27 } 28 29 /*** 30 * @see java.lang.Object#equals(Object) 31 */ 32 public boolean equals(Object o) { 33 return (o instanceof OneTime) && super.equals(o); 34 } 35 36 /*** 37 * @see java.lang.Object#hashCode() 38 */ 39 public int hashCode() { 40 return super.hashCode(); 41 } 42 43 String getSexpType() { 44 return "one-time"; 45 } 46 47 Sexp[] getSexpParts() { 48 return new Sexp[0]; 49 } 50 51 static OneTime parseOneTime(Principal p, URI[] u, Iterator obody) 52 throws SexpParseException { 53 SexpUtil.checkDone(obody, "one-time"); // TODO; support s-parts 54 return new OneTime(p, u); 55 } 56 }

This page was automatically generated by Maven