|
From: <pe...@us...> - 2003-11-18 23:34:58
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers
In directory sc8-pr-cvs1:/tmp/cvs-serv4173/src/java/org/neuclear/commons/crypto/signers
Modified Files:
TestCaseSigner.java
Log Message:
Payment Web Application is getting there.
Index: TestCaseSigner.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/TestCaseSigner.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestCaseSigner.java 18 Nov 2003 15:07:18 -0000 1.4
--- TestCaseSigner.java 18 Nov 2003 23:34:55 -0000 1.5
***************
*** 3,6 ****
--- 3,7 ----
import org.neuclear.commons.NeuClearException;
import org.neuclear.commons.crypto.passphraseagents.AlwaysTheSamePassphraseAgent;
+ import org.neuclear.commons.crypto.passphraseagents.PassPhraseAgent;
import java.io.InputStream;
***************
*** 28,31 ****
--- 29,35 ----
$Id$
$Log$
+ Revision 1.5 2003/11/18 23:34:55 pelle
+ Payment Web Application is getting there.
+
Revision 1.4 2003/11/18 15:07:18 pelle
Changes to JCE Implementation
***************
*** 66,69 ****
--- 70,77 ----
}
+ public TestCaseSigner(PassPhraseAgent agent) throws GeneralSecurityException, NeuClearException {
+ this(KEYSTORE, getKeyStore(), agent);
+ }
+
/**
* Creates a TestCaseSigner in the given location. The keystore must
***************
*** 77,85 ****
*/
public TestCaseSigner(String name, InputStream in, String passphrase) throws NeuClearException, GeneralSecurityException {
super(name,
in,
"jks", "SUN",
! //new GuiDialogAgent()
! new AlwaysTheSamePassphraseAgent(passphrase)
);
}
--- 85,96 ----
*/
public TestCaseSigner(String name, InputStream in, String passphrase) throws NeuClearException, GeneralSecurityException {
+ this(name, in, new AlwaysTheSamePassphraseAgent(passphrase));
+ }
+
+ public TestCaseSigner(String name, InputStream in, PassPhraseAgent agent) throws NeuClearException, GeneralSecurityException {
super(name,
in,
"jks", "SUN",
! agent
);
}
|