|
From: <ed...@bo...> - 2003-08-23 03:02:13
|
edwin 03/08/22 23:02:08
Modified: openpgp/src/cryptix/openpgp/provider PGPKeyRingKeyStore.java
Log:
Catchup to the changed order of addPrivateKey parameters in
KeyBundle.
Revision Changes Path
1.4 +3 -3 projects/openpgp/src/cryptix/openpgp/provider/PGPKeyRingKeyStore.java
Index: PGPKeyRingKeyStore.java
===================================================================
RCS file: /home/cryptix-cvs/cvsroot/projects/openpgp/src/cryptix/openpgp/provider/PGPKeyRingKeyStore.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PGPKeyRingKeyStore.java 29 Aug 2001 15:40:40 -0000 1.3
+++ PGPKeyRingKeyStore.java 23 Aug 2003 03:02:08 -0000 1.4
@@ -1,4 +1,4 @@
-/* $Id: PGPKeyRingKeyStore.java,v 1.3 2001/08/29 15:40:40 edwin Exp $
+/* $Id: PGPKeyRingKeyStore.java,v 1.4 2003/08/23 03:02:08 edwin Exp $
*
* Copyright (C) 1999-2001 The Cryptix Foundation Limited.
* All rights reserved.
@@ -50,7 +50,7 @@
*
* @author Edwin Woudt <ed...@cr...>
* @author Ingo Luetkebohle
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class PGPKeyRingKeyStore extends ExtendedKeyStoreSpi {
@@ -160,7 +160,7 @@
for (int i=0; i<chain.length; i++) {
bundle.addCertificate(chain[i]);
}
- bundle.addPrivateKey(chain[0].getPublicKey(), (PGPPrivateKey)key,
+ bundle.addPrivateKey((PGPPrivateKey)key, chain[0].getPublicKey(),
password, new SecureRandom());
KeyID id = PGPKeyIDFactory.convert(key);
|