diff options
author | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-23 08:15:52 +0800 |
---|---|---|
committer | Yuuta Liang <yuutaw@student.cs.ubc.ca> | 2023-11-23 08:15:52 +0800 |
commit | 6290e100fa679c9b962ddcf68d00f7b99c063f30 (patch) | |
tree | 1afbd7005bb5fed0b33b4051ef1960b7640fc90f | |
parent | 65ea6c17a0c1348aa9ef4e158102ddf173936882 (diff) | |
download | jca-6290e100fa679c9b962ddcf68d00f7b99c063f30.tar jca-6290e100fa679c9b962ddcf68d00f7b99c063f30.tar.gz jca-6290e100fa679c9b962ddcf68d00f7b99c063f30.tar.bz2 jca-6290e100fa679c9b962ddcf68d00f7b99c063f30.zip |
Use basic ASCII
Signed-off-by: Yuuta Liang <yuutaw@student.cs.ubc.ca>
-rw-r--r-- | src/main/ui/IssueDialog.java | 9 | ||||
-rw-r--r-- | src/main/ui/MainUI.java | 37 | ||||
-rw-r--r-- | src/main/ui/RevokeDialog.java | 16 | ||||
-rw-r--r-- | src/main/ui/widgets/CertEditDialog.java | 18 |
4 files changed, 35 insertions, 45 deletions
diff --git a/src/main/ui/IssueDialog.java b/src/main/ui/IssueDialog.java index 905b8df..c757d8f 100644 --- a/src/main/ui/IssueDialog.java +++ b/src/main/ui/IssueDialog.java @@ -14,15 +14,6 @@ import static ui.widgets.UIUtils.alert; /** * Dialog that allows user to choose a template and edit the incoming CSR properties to get it signed. - * ┌───────────────────────────┐ - * │ Issue new certificate X │ - * │ │ - * │Template: (Drop down)│ - * │Subject: _________ │ - * │Validity (Days): (Spinner)│ - * │ │ - * │ Issue Cancel│ - * └───────────────────────────┘ */ public class IssueDialog extends CertEditDialog<Template> { /** diff --git a/src/main/ui/MainUI.java b/src/main/ui/MainUI.java index 4735c55..9637d79 100644 --- a/src/main/ui/MainUI.java +++ b/src/main/ui/MainUI.java @@ -37,24 +37,25 @@ import static ui.widgets.UIUtils.*; /** * The main GUI. - * ┌──────────────────────────────┐┌──────────────────────────────┐┌──────────────────────────────┐ - * │ JCA X ││ JCA X ││ JCA X │ - * ├──────────────────────────────┤├──────────────────────────────┤├──────────────────────────────┤ - * │Load Save CSR││Load Save Sign Revoke Export││Load Save New Ena Dis Del│ - * ├────┬───────┬───────────┬─────┤├────┬───────┬──────────┬──────┤├────┬───────┬─────────────────┤ - * │ CA │ Certs │ Templates │ ││ CA │ Certs │ Templates│ ││ CA │ Certs │ Templates │ - * ├────┴───────┴───────────┴─────┤├─┬──┴─────┬─┴────┬─────┼──────┤├─┬──┴───┬───┴─────┬───────────┤ - * │ Welcome to JCA ││ │ Serial │ Subj │ Bef │ To ││ │ Name │ Subj │ Validity │ - * │ │├─┴────────┴──────┴─────┴──────┤├─┴──────┴─────────┴───────────┤ - * │ CA certificate: Install CSR ││ (Issued Certs) ││ (All Templates) │ - * ├──────────────────────────────┤├──────────────────────────────┤├──────────────────────────────┤ - * ├─────┼──────────┼─────────────┤├─────┼──────────┼─────────────┤├─────┼──────────┼─────────────┤ - * │Time │ Operator │ Action ││Time │ Operator │ Action ││Time │ Operator │ Action │ - * ├─────┴──────────┴─────────────┤├─────┴──────────┴─────────────┤├─────┴──────────┴─────────────┤ - * │ (Audit Logs) ││ (Audit Logs) ││ (Audit Logs) │ - * ├──────────────────────────────┤├──────────────────────────────┤├──────────────────────────────┤ - * │ Ready: (Last operation) ││ Unsaved: (Last operation) ││ Ready: (Last Operation) │ - * └──────────────────────────────┘└──────────────────────────────┘└──────────────────────────────┘ + * +------------------------------++------------------------------++------------------------------+ + * | JCA X || JCA X || JCA X | + * +------------------------------++------------------------------++------------------------------+ + * |Load Save CSR||Load Save Sign Revoke Export||Load Save New Ena Dis Del| + * +----+-------+-----------+-----++----+-------+----------+------++----+-------+-----------------+ + * | CA | Certs | Templates | || CA | Certs | Templates| || CA | Certs | Templates | + * +----+-------+-----------+-----++-+--+-----+-+----+-----+------++-+--+---+---+-----+-----------+ + * | Welcome to JCA || | Serial | Subj | Bef | To || | Name | Subj | Validity | + * | |+-+--------+------+-----+------++-+------+---------+-----------+ + * | Private key: Generate || (Issued Certs) || (All Templates) | + * | CA certificate: Install CSR || || | + * +------------------------------++------------------------------++------------------------------+ + * +-----+----------+-------------++-----+----------+-------------++-----+----------+-------------+ + * |Time | Operator | Action ||Time | Operator | Action ||Time | Operator | Action | + * +-----+----------+-------------++-----+----------+-------------++-----+----------+-------------+ + * | (Audit Logs) || (Audit Logs) || (Audit Logs) | + * +------------------------------++------------------------------++------------------------------+ + * | Ready: (Last operation) || Unsaved: (Last operation) || Ready: (Last Operation) | + * +------------------------------++------------------------------++------------------------------+ */ public class MainUI extends JFrame { /** diff --git a/src/main/ui/RevokeDialog.java b/src/main/ui/RevokeDialog.java index 49c13d1..f611b0f 100644 --- a/src/main/ui/RevokeDialog.java +++ b/src/main/ui/RevokeDialog.java @@ -26,15 +26,13 @@ import static ui.widgets.UIUtils.alert; /** * A dialog that presents user with cert info, revocation reason, and revocation time. - * ┌────────────────────────────┐ - * │ Revoke Certificate │ - * │ │ - * │Revoking: CN=xyz (Serial: 1)│ - * │Reason: (Drop Down) │ - * │Time: (ISO-8601 text) │ - * │ │ - * │ Revoke Cancel│ - * └────────────────────────────┘ + * +----------------------------+ + * |Revoking: CN=xyz (Serial: 1)| + * |Reason: <Drop Down> | + * |Time: <ISO-8601 text> | + * | | + * | Revoke Cancel| + * +----------------------------+ */ public class RevokeDialog extends JDialog { /** diff --git a/src/main/ui/widgets/CertEditDialog.java b/src/main/ui/widgets/CertEditDialog.java index ea16b19..bad5a4f 100644 --- a/src/main/ui/widgets/CertEditDialog.java +++ b/src/main/ui/widgets/CertEditDialog.java @@ -13,15 +13,15 @@ import static ui.widgets.UIUtils.btn; /** * A common dialog for cert / template editing. It will close upon Esc or Cancel. - * ┌───────────────────────────┐ - * │ Dialog X │ - * │ │ - * │Template: (TBD) │ - * │Subject: _________ │ - * │Validity (Days): (Spinner)│ - * │ │ - * │ Button Cancel│ - * └───────────────────────────┘ + * +---------------------------++---------------------------++---------------------------+ + * | Dialog X || New Template X || Issue new certificate X | + * | || || | + * |Template: (TBD) ||Template: _________||Template: (Drop down)| + * |Subject: _________||Subject: _________||Subject: _________ | + * |Validity (Days): (Spinner)||Validity (Days): (Spinner)||Validity (Days): (Spinner)| + * | || || | + * | Button Cancel|| Add Cancel|| Issue Cancel| + * +---------------------------++---------------------------++---------------------------+ */ public abstract class CertEditDialog<T> extends JDialog { /** |