aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/ca/CertificationAuthority.java
diff options
context:
space:
mode:
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();