Previous Page Next Page Start of Tutorial > Start of Trail > Start of Lesson Lesson Contents

Trail:
Security in JDK 1.2
Lesson:
Generating and Verifying Signatures



Help on searching
is available.

Search technology
by Excite, Inc.

Input the Signature Bytes

Next, input the signature bytes from the file specified as the second command line argument.
        FileInputStream sigfis = new FileInputStream(args[1]);
        byte[] sigToVerify = new byte[sigfis.available()]; 
        sigfis.read(sigToVerify);
        sigfis.close();
Now the byte array sigToVerify contains the signature bytes.
 
Previous Page Next Page Start of Tutorial > Start of Trail > Start of Lesson Lesson Contents