| VerifySignature.java |
1 /*
2 * @(#) $Id: VerifySignature.java,v 1.2 2003/07/08 08:13:52 pankaj Exp $
3 *
4 * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net).
5 * All rights reserved.
6 *
7 * The license governing the use of this file can be found in the
8 * root directory of the containing software.
9 */
10import infomosaic.securexml.Signature;
11
12public class VerifySignature{
13 public static void main(String[] unused){
14 String sigfile = "sig.xml";
15 Signature sig = new Signature();
16 int result = sig.verify(sigfile);
17
18 System.out.println("Signature verification " + (result == 0 ? "FAILED!!" : "SUCCESSFUL!!"));
19 }
20}
21