|
From: <pe...@us...> - 2003-12-09 23:41:49
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/source
In directory sc8-pr-cvs1:/tmp/cvs-serv16140/src/java/org/neuclear/source
Modified Files:
CachedSource.java
Log Message:
IdentityCreator is now the default class of the uber jar.
It has many new features such as:
- Self signed certificates
- Unsigned Certificates (for external signing)
- Signing of Externally generated Certificates
- Command Line verification of an Identity name
CachedSource now supports freshness. It needs to be tested a bit more thoroughly
though.
Documentation including the bdg has been updated to reflect these changes.
Index: CachedSource.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/source/CachedSource.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CachedSource.java 6 Dec 2003 00:17:03 -0000 1.15
--- CachedSource.java 9 Dec 2003 23:41:44 -0000 1.16
***************
*** 3,6 ****
--- 3,19 ----
* $Id$
* $Log$
+ * Revision 1.16 2003/12/09 23:41:44 pelle
+ * IdentityCreator is now the default class of the uber jar.
+ * It has many new features such as:
+ * - Self signed certificates
+ * - Unsigned Certificates (for external signing)
+ * - Signing of Externally generated Certificates
+ * - Command Line verification of an Identity name
+ *
+ * CachedSource now supports freshness. It needs to be tested a bit more thoroughly
+ * though.
+ *
+ * Documentation including the bdg has been updated to reflect these changes.
+ *
* Revision 1.15 2003/12/06 00:17:03 pelle
* Updated various areas in NSTools.
***************
*** 136,141 ****
final File object = new File(cachedirpath + NSTools.name2path(name) + "/root.id");
try {
! if (!object.exists()) { //TODO check for freshness
object.getParentFile().mkdirs();
final InputStream in = src.getStream(endpoint, name);
final OutputStream out = new FileOutputStream(object);
--- 149,156 ----
final File object = new File(cachedirpath + NSTools.name2path(name) + "/root.id");
try {
! if (!object.exists()||((object.lastModified()+MS_STALE)<System.currentTimeMillis())) {
object.getParentFile().mkdirs();
+ if (object.exists())
+ object.delete();
final InputStream in = src.getStream(endpoint, name);
final OutputStream out = new FileOutputStream(object);
***************
*** 157,161 ****
private final Source src;
private final String cachedirpath;
!
}
--- 172,176 ----
private final Source src;
private final String cachedirpath;
! private final static long MS_STALE=8640000; // Milliseconds until a cache entry is stale
}
|