From 12f696ca2dbbd3bb579b4e675701d8aa711654b7 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 14 Jun 2024 23:45:02 +0300 Subject: [PATCH] Fix typos Signed-off-by: Sergey Ponomarev --- kse/src/main/java/org/kse/gui/CurrentDirectory.java | 2 +- kse/src/main/java/org/kse/gui/dialogs/DialogHelper.java | 4 ++-- .../org/kse/gui/dialogs/extensions/DAddExtensionType.java | 6 +++--- .../java/org/kse/gui/dialogs/extensions/DAddExtensions.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kse/src/main/java/org/kse/gui/CurrentDirectory.java b/kse/src/main/java/org/kse/gui/CurrentDirectory.java index 1f0af25b2..5da8b921d 100644 --- a/kse/src/main/java/org/kse/gui/CurrentDirectory.java +++ b/kse/src/main/java/org/kse/gui/CurrentDirectory.java @@ -43,7 +43,7 @@ private static void initialiseWorkingDirToBeHomeDir() { } /** - * Update CurrentSirectory to be the supplied directory. + * Update CurrentDirectory to be the supplied directory. * * @param directory Used to set current directory */ diff --git a/kse/src/main/java/org/kse/gui/dialogs/DialogHelper.java b/kse/src/main/java/org/kse/gui/dialogs/DialogHelper.java index b8e5abe9a..4d1cae4c2 100644 --- a/kse/src/main/java/org/kse/gui/dialogs/DialogHelper.java +++ b/kse/src/main/java/org/kse/gui/dialogs/DialogHelper.java @@ -114,8 +114,8 @@ public static void populateSigAlgs(KeyPairType keyPairType, PrivateKey privateKe */ public static void populatePkcs10Challenge(Attribute[] attributes, JTextField textField) { - ASN1ObjectIdentifier pkcs9AtChallengepassword = PKCSObjectIdentifiers.pkcs_9_at_challengePassword; - populateTextField(attributes, textField, pkcs9AtChallengepassword); + ASN1ObjectIdentifier pkcs9AtChallengePassword = PKCSObjectIdentifiers.pkcs_9_at_challengePassword; + populateTextField(attributes, textField, pkcs9AtChallengePassword); } /** diff --git a/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensionType.java b/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensionType.java index f90d3e5ca..0509e7599 100644 --- a/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensionType.java +++ b/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensionType.java @@ -192,9 +192,9 @@ private void populateExtensionTypes() { // Population is the supported set minus those already added ArrayList availableExtensions = new ArrayList<>(); - for (X509ExtensionType extentionType : SUPPORTED_EXTENSIONS) { - if (extensions.getExtensionValue(extentionType.oid()) == null) { - availableExtensions.add(extentionType); + for (X509ExtensionType extensionType : SUPPORTED_EXTENSIONS) { + if (extensions.getExtensionValue(extensionType.oid()) == null) { + availableExtensions.add(extensionType); } } diff --git a/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensions.java b/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensions.java index 31abc0bb1..f0c352eae 100644 --- a/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensions.java +++ b/kse/src/main/java/org/kse/gui/dialogs/extensions/DAddExtensions.java @@ -825,7 +825,7 @@ public static void saveTemplatePressed(X509ExtensionSet extensionsToSave, JDialo } /** - * Get chosen certficate extensions. + * Get chosen certificate extensions. * * @return Certificate extensions or null if dialog cancelled. */