|
From: <pe...@us...> - 2003-11-21 13:57:30
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv28663/src/java/org/neuclear/id
Modified Files:
SignatureRequest.java SignedNamedCore.java
Log Message:
Changed some mutable fields in immutable classes, making them truely immutable. Thus safer.
Index: SignatureRequest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/SignatureRequest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SignatureRequest.java 21 Nov 2003 04:45:13 -0000 1.6
--- SignatureRequest.java 21 Nov 2003 13:57:27 -0000 1.7
***************
*** 30,33 ****
--- 30,36 ----
$Id$
$Log$
+ Revision 1.7 2003/11/21 13:57:27 pelle
+ Changed some mutable fields in immutable classes, making them truely immutable. Thus safer.
+
Revision 1.6 2003/11/21 04:45:13 pelle
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
***************
*** 73,76 ****
--- 76,81 ----
* The SignatureRequest would typically be created using a SignatureRequestBuilder buy
* the Requesting site. The Users Signature service would present it to the user who signs it.
+ *
+ *
* User: pelleb
* Date: Nov 6, 2003
***************
*** 90,94 ****
public final NamedObjectBuilder getUnsigned() {
! return unsigned;
}
--- 95,103 ----
public final NamedObjectBuilder getUnsigned() {
! try {
! return (NamedObjectBuilder) unsigned.clone();
! } catch (CloneNotSupportedException e) {
! throw new RuntimeException(e);
! }
}
Index: SignedNamedCore.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/SignedNamedCore.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SignedNamedCore.java 21 Nov 2003 04:45:13 -0000 1.2
--- SignedNamedCore.java 21 Nov 2003 13:57:27 -0000 1.3
***************
*** 2,5 ****
--- 2,8 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/11/21 13:57:27 pelle
+ * Changed some mutable fields in immutable classes, making them truely immutable. Thus safer.
+ *
* Revision 1.2 2003/11/21 04:45:13 pelle
* EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
***************
*** 241,245 ****
this.name = name;
this.signer = signer;
! this.timestamp = timestamp;
this.encoded = encoded;
}
--- 244,248 ----
this.name = name;
this.signer = signer;
! this.timestamp = timestamp.getTime();
this.encoded = encoded;
}
***************
*** 307,311 ****
*/
public final Timestamp getTimeStamp() {
! return timestamp;
}
--- 310,314 ----
*/
public final Timestamp getTimeStamp() {
! return new Timestamp(timestamp);
}
***************
*** 336,340 ****
private final String name;
private final Identity signer;
! private final Timestamp timestamp;
private final String encoded;
--- 339,343 ----
private final String name;
private final Identity signer;
! private final long timestamp;
private final String encoded;
|