diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-29 14:47:14 -0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-29 14:47:14 -0800 |
commit | 9f897f3e0351a7db7016d22b864b8b88dfd5ce06 (patch) | |
tree | f0843bdced5697c47f9552b585577a725a639f97 /src/main/model/ca | |
parent | 8db775e4a4e85b55218435a1a989461f62f31f36 (diff) | |
download | jca-9f897f3e0351a7db7016d22b864b8b88dfd5ce06.tar jca-9f897f3e0351a7db7016d22b864b8b88dfd5ce06.tar.gz jca-9f897f3e0351a7db7016d22b864b8b88dfd5ce06.tar.bz2 jca-9f897f3e0351a7db7016d22b864b8b88dfd5ce06.zip |
Fix association taggings
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
Diffstat (limited to 'src/main/model/ca')
-rw-r--r-- | src/main/model/ca/AuditLogEntry.java | 3 | ||||
-rw-r--r-- | src/main/model/ca/CertificationAuthority.java | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/model/ca/AuditLogEntry.java b/src/main/model/ca/AuditLogEntry.java index a8d1929..673055a 100644 --- a/src/main/model/ca/AuditLogEntry.java +++ b/src/main/model/ca/AuditLogEntry.java @@ -20,6 +20,9 @@ public class AuditLogEntry { this.action = action; } + /** + * EFFECTS: Format log in the time\tuser\taction format. + */ @Override public String toString() { return String.format("%s\t%s\t%s", time, user, action); diff --git a/src/main/model/ca/CertificationAuthority.java b/src/main/model/ca/CertificationAuthority.java index b724e83..0246ff2 100644 --- a/src/main/model/ca/CertificationAuthority.java +++ b/src/main/model/ca/CertificationAuthority.java @@ -55,7 +55,7 @@ public class CertificationAuthority { private RSAPublicKey publicKey; /** - * The signed certificate. + * The CA certificate. */ @Assoc(partOf = true, lowerBond = 0) private Certificate certificate; @@ -323,6 +323,10 @@ public class CertificationAuthority { }))})); } + /** + * EFFECTS: Encode the public key into ASN.1 bit string, including public exponent and modules. + * REQUIRES: getPublicKey() != null + */ private Byte[] getPubKeyBitStream() { final RSAPublicKey pub = getPublicKey(); final BigInteger exponent = pub.getPublicExponent(); |