aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/ca/CertificationAuthority.java
diff options
context:
space:
mode:
authorYuuta Liang <yuutaw@student.cs.ubc.ca>2023-11-29 14:47:14 -0800
committerYuuta Liang <yuutaw@student.cs.ubc.ca>2023-11-29 14:47:14 -0800
commit9f897f3e0351a7db7016d22b864b8b88dfd5ce06 (patch)
treef0843bdced5697c47f9552b585577a725a639f97 /src/main/model/ca/CertificationAuthority.java
parent8db775e4a4e85b55218435a1a989461f62f31f36 (diff)
downloadjca-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/CertificationAuthority.java')
-rw-r--r--src/main/model/ca/CertificationAuthority.java6
1 files changed, 5 insertions, 1 deletions
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();