|
From: <pe...@us...> - 2003-11-21 04:45:26
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv10855/src/java/org/neuclear/tests
Modified Files:
AbstractReceiverTest.java AbstractSigningTest.java
Log Message:
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
Otherwise You will Finaliate.
Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
This should hopefully make everything more stable (and secure).
Index: AbstractReceiverTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests/AbstractReceiverTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AbstractReceiverTest.java 15 Nov 2003 01:58:18 -0000 1.4
--- AbstractReceiverTest.java 21 Nov 2003 04:45:16 -0000 1.5
***************
*** 32,35 ****
--- 32,41 ----
$Id$
$Log$
+ Revision 1.5 2003/11/21 04:45:16 pelle
+ EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
+ Otherwise You will Finaliate.
+ Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
+ This should hopefully make everything more stable (and secure).
+
Revision 1.4 2003/11/15 01:58:18 pelle
More work all around on web applications.
***************
*** 65,69 ****
public abstract class AbstractReceiverTest extends AbstractSigningTest {
! protected AbstractReceiverTest(String string) throws GeneralSecurityException, NeuClearException {
super(string);
CryptoTools.ensureProvider();
--- 71,75 ----
public abstract class AbstractReceiverTest extends AbstractSigningTest {
! protected AbstractReceiverTest(final String string) throws GeneralSecurityException, NeuClearException {
super(string);
CryptoTools.ensureProvider();
***************
*** 107,133 ****
! public void runDirectoryTest(String path) throws Exception, IOException, FileNotFoundException, NeuClearException, XMLException {
! File dir = new File(path);
if (!dir.exists()) {
System.out.println("Doesnt exist");
return;
}
! FilenameFilter filter;
filter = new FilenameFilter() {
! public boolean accept(File dirf, String name) {
return name.endsWith(getExtension());
}
};
! File xmlfiles[] = dir.listFiles(filter);
System.out.println("There are " + xmlfiles.length + " files in the directory");
for (int i = 0; i < xmlfiles.length; i++) {
! File xmlfile = xmlfiles[i];
System.out.print("Testing file: " + xmlfile.getName() + "... ");
try {
! SignedNamedObject obj = reader.read(new FileInputStream(xmlfile));
System.out.println("Receiving name : " + obj.getName());
! Object prestate = getPreTransactionState(obj);
getReceiver().receive(obj);
assertTrue(verifyTransaction(obj, prestate));
--- 113,139 ----
! public final void runDirectoryTest(final String path) throws Exception, IOException, FileNotFoundException, NeuClearException, XMLException {
! final File dir = new File(path);
if (!dir.exists()) {
System.out.println("Doesnt exist");
return;
}
! final FilenameFilter filter;
filter = new FilenameFilter() {
! public boolean accept(final File dirf, final String name) {
return name.endsWith(getExtension());
}
};
! final File[] xmlfiles = dir.listFiles(filter);
System.out.println("There are " + xmlfiles.length + " files in the directory");
for (int i = 0; i < xmlfiles.length; i++) {
! final File xmlfile = xmlfiles[i];
System.out.print("Testing file: " + xmlfile.getName() + "... ");
try {
! final SignedNamedObject obj = reader.read(new FileInputStream(xmlfile));
System.out.println("Receiving name : " + obj.getName());
! final Object prestate = getPreTransactionState(obj);
getReceiver().receive(obj);
assertTrue(verifyTransaction(obj, prestate));
Index: AbstractSigningTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests/AbstractSigningTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AbstractSigningTest.java 18 Nov 2003 15:07:36 -0000 1.2
--- AbstractSigningTest.java 21 Nov 2003 04:45:16 -0000 1.3
***************
*** 31,34 ****
--- 31,40 ----
$Id$
$Log$
+ Revision 1.3 2003/11/21 04:45:16 pelle
+ EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
+ Otherwise You will Finaliate.
+ Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
+ This should hopefully make everything more stable (and secure).
+
Revision 1.2 2003/11/18 15:07:36 pelle
Changes to JCE Implementation
***************
*** 47,51 ****
*/
public class AbstractSigningTest extends TestCase {
! public AbstractSigningTest(String string) throws NeuClearException, GeneralSecurityException {
super(string);
CryptoTools.ensureProvider();
--- 53,57 ----
*/
public class AbstractSigningTest extends TestCase {
! public AbstractSigningTest(final String string) throws NeuClearException, GeneralSecurityException {
super(string);
CryptoTools.ensureProvider();
***************
*** 61,65 ****
*/
! protected Identity getBob() {
return bob;
}
--- 67,71 ----
*/
! protected final Identity getBob() {
return bob;
}
***************
*** 71,75 ****
*/
! protected Identity getAlice() {
return alice;
}
--- 77,81 ----
*/
! protected final Identity getAlice() {
return alice;
}
|