summaryrefslogtreecommitdiff
path: root/gnu/javax/crypto/keyring/PrimitiveEntry.java
diff options
context:
space:
mode:
authorRaif S. Naffah <raif@swiftdsl.com.au>2006-05-07 10:16:02 +0000
committerRaif S. Naffah <raif@swiftdsl.com.au>2006-05-07 10:16:02 +0000
commit57299cb243893126dfb6139d2288bd1cf951d86f (patch)
tree016c4842cb849a76a4aaccd6783397079f010c1f /gnu/javax/crypto/keyring/PrimitiveEntry.java
parentede772416c62a0a4d5d9f4205e561ddb47d6ba4a (diff)
downloadclasspath-57299cb243893126dfb6139d2288bd1cf951d86f.tar.gz
2006-05-07 Raif S. Naffah <raif@swiftdsl.com.au>
* gnu/javax/crypto/keyring/PrimitiveEntry.java (PrimitiveEntry): Use instance's field creationDate not the constructor's argument. * gnu/javax/crypto/keyring/PasswordEncryptedEntry.java: Removed unused imports. Sorted imports. (log): New field. (decrypt): Added trace/debug/timing statements. (encrypt): Likewise. Use PRNG instead of instantiating every time a new SecureRandom. * gnu/javax/crypto/keyring/PasswordAuthenticatedEntry.java: Removed unused imports. Sorted imports. (log): New field. (verify): Added trace/debug/timing statements. (authenticate): Likewise. Use PRNG instead of instantiating every time a new SecureRandom.
Diffstat (limited to 'gnu/javax/crypto/keyring/PrimitiveEntry.java')
-rw-r--r--gnu/javax/crypto/keyring/PrimitiveEntry.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/javax/crypto/keyring/PrimitiveEntry.java b/gnu/javax/crypto/keyring/PrimitiveEntry.java
index 4c9ff0ff1..f5e63e996 100644
--- a/gnu/javax/crypto/keyring/PrimitiveEntry.java
+++ b/gnu/javax/crypto/keyring/PrimitiveEntry.java
@@ -69,10 +69,9 @@ public abstract class PrimitiveEntry extends Entry
if (!this.properties.containsKey("alias")
|| this.properties.get("alias").length() == 0)
{
- throw new IllegalArgumentException(
- "primitive entries MUST have an alias");
+ throw new IllegalArgumentException("primitive entries MUST have an alias");
}
- this.properties.put("creation-date", String.valueOf(creationDate.getTime()));
+ this.properties.put("creation-date", String.valueOf(this.creationDate.getTime()));
}
protected PrimitiveEntry(int type)