|
NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems
ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en:
http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com. |
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂtulo en concreto puede realizar una donación directa mediante Paypal:
|
Hereis the complete source code for theGenSig.javaprogram, with some comments added. Compile and run it. Remember, you need to specify the name of a file to be signed, as injava GenSig dataYou can download and use this sample file named
dataor any other file you like. The file will not be modified. It will be read so that a signature can be generated for it.After executing the program, you should see the saved
suepk(public key) andsig(signature) files.