From 9f897f3e0351a7db7016d22b864b8b88dfd5ce06 Mon Sep 17 00:00:00 2001 From: Yuuta Liang Date: Wed, 29 Nov 2023 14:47:14 -0800 Subject: Fix association taggings Signed-off-by: Yuuta Liang --- src/main/model/ca/CertificationAuthority.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/model/ca/CertificationAuthority.java') 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(); -- cgit v1.2.3