|
From: <pe...@us...> - 2003-12-10 23:58:54
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache
In directory sc8-pr-cvs1:/tmp/cvs-serv1921/src/java/org/neuclear/id/cache
Modified Files:
NSCache.java
Log Message:
Did some cleaning up in the builders
Fixed some stuff in IdentityCreator
New maven goal to create executable jarapp
We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons.
Will release shortly.
Index: NSCache.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache/NSCache.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** NSCache.java 21 Nov 2003 04:45:10 -0000 1.6
--- NSCache.java 10 Dec 2003 23:58:51 -0000 1.7
***************
*** 3,10 ****
import com.waterken.adt.NoSuchElement;
import com.waterken.adt.cache.Cache;
! import org.neuclear.id.NSTools;
import org.neuclear.id.Identity;
import org.neuclear.id.SignedNamedObject;
- import org.neuclear.commons.NeuClearException;
/**
--- 3,10 ----
import com.waterken.adt.NoSuchElement;
import com.waterken.adt.cache.Cache;
! import org.neuclear.commons.NeuClearException;
import org.neuclear.id.Identity;
+ import org.neuclear.id.NSTools;
import org.neuclear.id.SignedNamedObject;
/**
***************
*** 25,28 ****
--- 25,29 ----
/**
* Attempts to get a verified PublicKey for the given name from the cache
+ *
* @param name Fully Normalised name
* @return a valid Identity object if found otherwise null
***************
*** 38,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);
--- 39,43 ----
public void cache(final SignedNamedObject ns) throws NeuClearException {
// Only store if it's parent is already here
! final String parentName = NSTools.getSignatoryURI(ns.getName());
if ((fetchCached(parentName) != null) || (parentName.equals("neu://"))) {
spaces.put(ns.getName(), ns);
|