From 97b3577a463966e93d24649ff348fc4bb6825e50 Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Sun, 2 Apr 2023 14:04:33 -0400 Subject: Refactor SSHKey into a separate module (#2450) * refactor(ssh): add `ssh` module Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKey` data class Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKeyType` enum Signed-off-by: Aditya Wasan * refactor(ssh): add `SSHKeyAlgorithm` class Signed-off-by: Aditya Wasan * refactor(ssh): add class to generate `RSA` key Signed-off-by: Aditya Wasan * chore(ssh): add required dependencies Signed-off-by: Aditya Wasan * refactor(ssh): add `ECDSAKeyGenerator` and remove constants Signed-off-by: Aditya Wasan * refactor(ssh): add utilities Signed-off-by: Aditya Wasan * feat(ssh): add `SSHKeyWriter` Signed-off-by: Aditya Wasan * refactor(ssh): make ssh key generators suspending Signed-off-by: Aditya Wasan * fix(ssh): fix explicit API violations * feat: complete `ED25519KeyWriter` implementation Signed-off-by: Aditya Wasan * factor(ssh/writer): update writer interface Signed-off-by: Aditya Wasan * feat(ssh/provider): add providers for different key types Signed-off-by: Aditya Wasan * feat(ssh): add SSHKeyManager for common key functionality Signed-off-by: Aditya Wasan * feat(ssh): add remaining methods to reach feature parity with old SSH implementation Signed-off-by: Aditya Wasan * wip(app): start using SSHKeyManager instead of SSHKey class Signed-off-by: Aditya Wasan Signed-off-by: Harsh Shandilya * refactor(ssh): update package name Signed-off-by: Aditya Wasan * chore(ssh): fix detekt warnings Signed-off-by: Aditya Wasan * chore: fixes across the board --------- Signed-off-by: Aditya Wasan Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- detekt-baselines/ssh.xml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 detekt-baselines/ssh.xml (limited to 'detekt-baselines') diff --git a/detekt-baselines/ssh.xml b/detekt-baselines/ssh.xml new file mode 100644 index 00000000..51033513 --- /dev/null +++ b/detekt-baselines/ssh.xml @@ -0,0 +1,9 @@ + + + + + ReturnCount:SSHKeyManager.kt$SSHKeyManager$public fun needsAuthentication(): Boolean + SwallowedException:SSHKeyManager.kt$SSHKeyManager$e: IllegalStateException + TooManyFunctions:SSHKeyManager.kt$SSHKeyManager + + -- cgit v1.2.3