diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 11:57:29 -0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-28 11:57:29 -0800 |
commit | e13adbb9a9146dd5ece890449e3cad958a502f86 (patch) | |
tree | 735def53883095ed1f2318a6acc3fc265e818945 /src/main/model | |
parent | d8f2ae5798aaf6dd20c1fd0a2bfedb472308a606 (diff) | |
download | jca-e13adbb9a9146dd5ece890449e3cad958a502f86.tar jca-e13adbb9a9146dd5ece890449e3cad958a502f86.tar.gz jca-e13adbb9a9146dd5ece890449e3cad958a502f86.tar.bz2 jca-e13adbb9a9146dd5ece890449e3cad958a502f86.zip |
Phase 4: Task 2
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
Diffstat (limited to 'src/main/model')
-rw-r--r-- | src/main/model/ca/CertificationAuthority.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/model/ca/CertificationAuthority.java b/src/main/model/ca/CertificationAuthority.java index 5181f1a..b118637 100644 --- a/src/main/model/ca/CertificationAuthority.java +++ b/src/main/model/ca/CertificationAuthority.java @@ -1,5 +1,7 @@ package model.ca; +import model.Event; +import model.EventLog; import model.Observer; import model.asn1.*; import model.asn1.exceptions.InvalidCAException; @@ -473,6 +475,7 @@ public class CertificationAuthority { final AuditLogEntry i = new AuditLogEntry(user, ZonedDateTime.now(), message); this.logs.add(i); notif(i, Observer.DIRECTION_ADD, logs.size() - 1); + EventLog.getInstance().logEvent(new Event(user + ": " + message)); } /** |