Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders
In directory sc8-pr-cvs1:/tmp/cvs-serv1921/src/test/org/neuclear/id/builders
Modified Files:
AuthenticationBuilderTest.java IdentityBuilderTest.java
SigningRequestBuilderTest.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: AuthenticationBuilderTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders/AuthenticationBuilderTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AuthenticationBuilderTest.java 21 Nov 2003 04:45:16 -0000 1.3
--- AuthenticationBuilderTest.java 10 Dec 2003 23:58:52 -0000 1.4
***************
*** 29,32 ****
--- 29,39 ----
$Id$
$Log$
+ Revision 1.4 2003/12/10 23:58:52 pelle
+ 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.
+
Revision 1.3 2003/11/21 04:45:16 pelle
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
***************
*** 39,43 ****
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further send on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
--- 46,50 ----
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further receive on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
***************
*** 62,66 ****
public final void testAuthenticate() throws NeuClearException, XMLException {
final AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://users.neuclear.org:8080");
! assertEquals(authreq.getParent().getName(), "neu://bob@test");
try {
final AuthenticationTicket auth = (AuthenticationTicket) authreq.sign(signer);
--- 69,73 ----
public final void testAuthenticate() throws NeuClearException, XMLException {
final AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://users.neuclear.org:8080");
! assertEquals(authreq.getSignatory().getName(), "neu://bob@test");
try {
final AuthenticationTicket auth = (AuthenticationTicket) authreq.sign(signer);
Index: IdentityBuilderTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders/IdentityBuilderTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** IdentityBuilderTest.java 22 Nov 2003 00:23:47 -0000 1.8
--- IdentityBuilderTest.java 10 Dec 2003 23:58:52 -0000 1.9
***************
*** 31,34 ****
--- 31,41 ----
$Id$
$Log$
+ Revision 1.9 2003/12/10 23:58:52 pelle
+ 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.
+
Revision 1.8 2003/11/22 00:23:47 pelle
All unit tests in commons, id and xmlsec now work.
***************
*** 47,51 ****
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further send on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
--- 54,58 ----
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further receive on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
***************
*** 92,96 ****
"mailto:pe...@ne...");
! assertEquals("neu://test", NSTools.getParentNSURI(id.getName()));
final SignedNamedObject sec = id.sign(getSigner());
assertNotNull(sec);
--- 99,103 ----
"mailto:pe...@ne...");
! assertEquals("neu://test", NSTools.getSignatoryURI(id.getName()));
final SignedNamedObject sec = id.sign(getSigner());
assertNotNull(sec);
Index: SigningRequestBuilderTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders/SigningRequestBuilderTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SigningRequestBuilderTest.java 21 Nov 2003 17:55:16 -0000 1.4
--- SigningRequestBuilderTest.java 10 Dec 2003 23:58:52 -0000 1.5
***************
*** 30,33 ****
--- 30,40 ----
$Id$
$Log$
+ Revision 1.5 2003/12/10 23:58:52 pelle
+ 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.
+
Revision 1.4 2003/11/21 17:55:16 pelle
misc fixes
***************
*** 43,47 ****
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further send on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
--- 50,54 ----
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
! This means that it is now possible to further receive on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
***************
*** 67,71 ****
final AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://users.neuclear.org:8080");
final SignatureRequestBuilder sigreq = new SignatureRequestBuilder("neu://test", "neu://bob@test", authreq, "For testing purposes");
! assertEquals(sigreq.getParent().getName(), "neu://test");
try {
final SignatureRequest tosign = (SignatureRequest) sigreq.sign(signer);
--- 74,78 ----
final AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://users.neuclear.org:8080");
final SignatureRequestBuilder sigreq = new SignatureRequestBuilder("neu://test", "neu://bob@test", authreq, "For testing purposes");
! assertEquals(sigreq.getSignatory().getName(), "neu://test");
try {
final SignatureRequest tosign = (SignatureRequest) sigreq.sign(signer);
***************
*** 74,78 ****
final NamedObjectBuilder auth2 = tosign.getUnsigned();
! assertEquals(auth2.getParent().getName(), "neu://bob@test");
assertNotNull(auth2);
assertNotNull(auth2.getElement());
--- 81,85 ----
final NamedObjectBuilder auth2 = tosign.getUnsigned();
! assertEquals(auth2.getSignatory().getName(), "neu://bob@test");
assertNotNull(auth2);
assertNotNull(auth2.getElement());
|