|
From: <pe...@us...> - 2003-10-29 23:17:56
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers In directory sc8-pr-cvs1:/tmp/cvs-serv22723/src/java/org/neuclear/signers Modified Files: JCESigner.java SimpleSigner.java Log Message: Updated some javadocs Added a neuclear specific maven repository at: http://neuclear.org/maven/ and updated the properties files to reflect that. Index: JCESigner.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/JCESigner.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JCESigner.java 29 Oct 2003 21:16:28 -0000 1.1 --- JCESigner.java 29 Oct 2003 23:17:53 -0000 1.2 *************** *** 2,5 **** --- 2,10 ---- * $Id$ * $Log$ + * Revision 1.2 2003/10/29 23:17:53 pelle + * Updated some javadocs + * Added a neuclear specific maven repository at: + * http://neuclear.org/maven/ and updated the properties files to reflect that. + * * Revision 1.1 2003/10/29 21:16:28 pelle * Refactored the whole signing process. Now we have an interface called Signer which is the old SignerStore. *************** *** 115,121 **** /** ! * Returns the PrivateKey corresponding to the given name. * ! * @param name Unique Name of PrivateKey * @param data Data to be signed * @return The signature --- 120,126 ---- /** ! * Signs the data with the privatekey of the given name * ! * @param name Alias of private key to be used within KeyStore * @param data Data to be signed * @return The signature Index: SimpleSigner.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/SimpleSigner.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SimpleSigner.java 29 Oct 2003 21:16:28 -0000 1.1 --- SimpleSigner.java 29 Oct 2003 23:17:53 -0000 1.2 *************** *** 2,5 **** --- 2,10 ---- * $Id$ * $Log$ + * Revision 1.2 2003/10/29 23:17:53 pelle + * Updated some javadocs + * Added a neuclear specific maven repository at: + * http://neuclear.org/maven/ and updated the properties files to reflect that. + * * Revision 1.1 2003/10/29 21:16:28 pelle * Refactored the whole signing process. Now we have an interface called Signer which is the old SignerStore. *************** *** 180,183 **** --- 185,197 ---- } + + /** + * Signs the data with the privatekey of the given name + * + * @param name Alias of private key to be used within KeyStore + * @param data Data to be signed + * @return The signature + * @throws InvalidPassphraseException if the passphrase doesn't match + */ public byte[] sign(String name, byte data[]) throws CryptoException { |