|
From: <pe...@us...> - 2003-11-21 04:45:45
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache
In directory sc8-pr-cvs1:/tmp/cvs-serv10855/src/java/org/neuclear/id/cache
Modified Files:
NSCache.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: NSCache.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache/NSCache.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NSCache.java 11 Nov 2003 21:18:42 -0000 1.5
--- NSCache.java 21 Nov 2003 04:45:10 -0000 1.6
***************
*** 28,32 ****
* @return a valid Identity object if found otherwise null
*/
! public SignedNamedObject fetchCached(String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
return (Identity) spaces.fetch(name);
--- 28,32 ----
* @return a valid Identity object if found otherwise null
*/
! public SignedNamedObject fetchCached(final String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
return (Identity) spaces.fetch(name);
***************
*** 36,42 ****
}
! public void cache(SignedNamedObject ns) throws NeuClearException {
// Only store if it's parent is already here
! String parentName = NSTools.getParentNSURI(ns.getName());
if ((fetchCached(parentName) != null) || (parentName.equals("neu://"))) {
spaces.put(ns.getName(), ns);
--- 36,42 ----
}
! public void cache(final SignedNamedObject ns) throws NeuClearException {
// Only store if it's parent is already here
! final String parentName = NSTools.getParentNSURI(ns.getName());
if ((fetchCached(parentName) != null) || (parentName.equals("neu://"))) {
spaces.put(ns.getName(), ns);
|