|
From: <pe...@us...> - 2003-12-06 00:17:07
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/source
In directory sc8-pr-cvs1:/tmp/cvs-serv4604/src/java/org/neuclear/source
Modified Files:
CachedSource.java HttpSource.java
Log Message:
Updated various areas in NSTools.
Updated URI Validation in particular to support new expanded format
Updated createUniqueID and friends to be a lot more unique and more efficient.
In CryptoTools updated getRandom() to finally use a SecureRandom.
Changed CryptoTools.getFormatURLSafe to getBase36 because that is what it really is.
Index: CachedSource.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/source/CachedSource.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CachedSource.java 4 Dec 2003 21:50:36 -0000 1.14
--- CachedSource.java 6 Dec 2003 00:17:03 -0000 1.15
***************
*** 3,6 ****
--- 3,13 ----
* $Id$
* $Log$
+ * Revision 1.15 2003/12/06 00:17:03 pelle
+ * Updated various areas in NSTools.
+ * Updated URI Validation in particular to support new expanded format
+ * Updated createUniqueID and friends to be a lot more unique and more efficient.
+ * In CryptoTools updated getRandom() to finally use a SecureRandom.
+ * Changed CryptoTools.getFormatURLSafe to getBase36 because that is what it really is.
+ *
* Revision 1.14 2003/12/04 21:50:36 pelle
* Mainly documentation changes.
***************
*** 127,131 ****
protected InputStream getStream(final String endpoint, final String name) throws NeuClearException {
! final File object = new File(cachedirpath + NSTools.url2path(name) + "/root.id");
try {
if (!object.exists()) { //TODO check for freshness
--- 134,138 ----
protected InputStream getStream(final String endpoint, final String name) throws NeuClearException {
! final File object = new File(cachedirpath + NSTools.name2path(name) + "/root.id");
try {
if (!object.exists()) { //TODO check for freshness
Index: HttpSource.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/source/HttpSource.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** HttpSource.java 4 Dec 2003 21:50:36 -0000 1.10
--- HttpSource.java 6 Dec 2003 00:17:04 -0000 1.11
***************
*** 8,11 ****
--- 8,18 ----
* $Id$
* $Log$
+ * Revision 1.11 2003/12/06 00:17:04 pelle
+ * Updated various areas in NSTools.
+ * Updated URI Validation in particular to support new expanded format
+ * Updated createUniqueID and friends to be a lot more unique and more efficient.
+ * In CryptoTools updated getRandom() to finally use a SecureRandom.
+ * Changed CryptoTools.getFormatURLSafe to getBase36 because that is what it really is.
+ *
* Revision 1.10 2003/12/04 21:50:36 pelle
* Mainly documentation changes.
***************
*** 102,106 ****
protected final InputStream getStream(final String endpoint, final String name) throws NeuClearException {
try {
! final String urlstring = endpoint + NSTools.url2path(name);
final URL url = new URL(urlstring);
--- 109,113 ----
protected final InputStream getStream(final String endpoint, final String name) throws NeuClearException {
try {
! final String urlstring = endpoint + NSTools.name2path(name);
final URL url = new URL(urlstring);
|