|
From: Pelle B. <pe...@us...> - 2004-04-01 23:32:24
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4486/src/java/org/neuclear/tests Modified Files: AbstractSigningTest.java Log Message: Split Identity into Signatory and Identity class. Identity remains a signed named object and will in the future just be used for self declared information. Signatory now contains the PublicKey etc and is NOT a signed object. Index: AbstractSigningTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests/AbstractSigningTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AbstractSigningTest.java 18 Feb 2004 00:14:34 -0000 1.6 --- AbstractSigningTest.java 1 Apr 2004 23:19:50 -0000 1.7 *************** *** 6,10 **** import org.neuclear.commons.crypto.signers.JCESigner; import org.neuclear.commons.crypto.signers.TestCaseSigner; ! import org.neuclear.id.Identity; import java.security.GeneralSecurityException; --- 6,10 ---- import org.neuclear.commons.crypto.signers.JCESigner; import org.neuclear.commons.crypto.signers.TestCaseSigner; ! import org.neuclear.id.Signatory; import java.security.GeneralSecurityException; *************** *** 30,33 **** --- 30,38 ---- $Id$ $Log$ + Revision 1.7 2004/04/01 23:19:50 pelle + Split Identity into Signatory and Identity class. + Identity remains a signed named object and will in the future just be used for self declared information. + Signatory now contains the PublicKey etc and is NOT a signed object. + Revision 1.6 2004/02/18 00:14:34 pelle Many, many clean ups. I've readded Targets in a new method. *************** *** 73,79 **** assertNotNull(signer.getPublicKey("neu://bob@test")); ! alice = new Identity(signer.getPublicKey("neu://alice@test")); assertNotNull(alice); ! bob = new Identity(signer.getPublicKey("neu://bob@test")); assertNotNull(bob); } --- 78,84 ---- assertNotNull(signer.getPublicKey("neu://bob@test")); ! alice = new Signatory(signer.getPublicKey("neu://alice@test")); assertNotNull(alice); ! bob = new Signatory(signer.getPublicKey("neu://bob@test")); assertNotNull(bob); } *************** *** 85,89 **** */ ! protected final Identity getBob() { return bob; } --- 90,94 ---- */ ! protected final Signatory getBob() { return bob; } *************** *** 95,99 **** */ ! protected final Identity getAlice() { return alice; } --- 100,104 ---- */ ! protected final Signatory getAlice() { return alice; } *************** *** 103,108 **** } ! private Identity bob; ! private Identity alice; protected final JCESigner signer; } --- 108,113 ---- } ! private Signatory bob; ! private Signatory alice; protected final JCESigner signer; } |