diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 21:08:03 -0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 21:08:03 -0800 |
commit | f8e05e4376e1d5f00c93307605eb768281ad240b (patch) | |
tree | 5683cfe5c5c612452723f44d3eee114f27498fcf /src/main/model/ca | |
parent | 2a9c2e3abf57a5d92e311c07679ff62be7275f02 (diff) | |
download | jca-f8e05e4376e1d5f00c93307605eb768281ad240b.tar jca-f8e05e4376e1d5f00c93307605eb768281ad240b.tar.gz jca-f8e05e4376e1d5f00c93307605eb768281ad240b.tar.bz2 jca-f8e05e4376e1d5f00c93307605eb768281ad240b.zip |
Add association tags and generate UML
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
Diffstat (limited to 'src/main/model/ca')
-rw-r--r-- | src/main/model/ca/CertificationAuthority.java | 9 | ||||
-rw-r--r-- | src/main/model/ca/Template.java | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/main/model/ca/CertificationAuthority.java b/src/main/model/ca/CertificationAuthority.java index b118637..b724e83 100644 --- a/src/main/model/ca/CertificationAuthority.java +++ b/src/main/model/ca/CertificationAuthority.java @@ -1,5 +1,6 @@ package model.ca; +import annotations.Assoc; import model.Event; import model.EventLog; import model.Observer; @@ -44,21 +45,25 @@ public class CertificationAuthority { /** * The RSA2048 private key. */ + @Assoc(partOf = true, lowerBond = 0) private RSAPrivateKey key; /** * The public key. */ + @Assoc(partOf = true, lowerBond = 0) private RSAPublicKey publicKey; /** * The signed certificate. */ + @Assoc(partOf = true, lowerBond = 0) private Certificate certificate; /** * Signed certificates. */ + @Assoc(lowerBond = 0) private final List<Certificate> signed; /** @@ -69,16 +74,19 @@ public class CertificationAuthority { /** * Revoked certs. */ + @Assoc(lowerBond = 0) private final List<RevokedCertificate> revoked; /** * Certificate templates. */ + @Assoc(lowerBond = 0) private final List<Template> templates; /** * Audit logs. */ + @Assoc(lowerBond = 0) private final List<AuditLogEntry> logs; /** @@ -89,6 +97,7 @@ public class CertificationAuthority { /** * Data observers. */ + @Assoc(lowerBond = 0) private final List<Observer> observers; /** diff --git a/src/main/model/ca/Template.java b/src/main/model/ca/Template.java index 44de676..d2df360 100644 --- a/src/main/model/ca/Template.java +++ b/src/main/model/ca/Template.java @@ -1,5 +1,6 @@ package model.ca; +import annotations.Assoc; import model.asn1.ASN1Object; import model.asn1.ObjectIdentifier; import model.asn1.PrintableString; @@ -26,6 +27,7 @@ public class Template { /** * Subject of the issued certs. Null -> unspecified */ + @Assoc(partOf = true, lowerBond = 0) private final Name subject; /** |