From 1d35569191da3ba01445e5565937af16f6ce61e4 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sun, 28 Apr 2024 16:25:02 +0200 Subject: [PATCH] Fix formatting in U2F key classes --- .../sshd/common/config/keys/u2f/SkED25519PublicKey.java | 5 +++-- .../sshd/common/config/keys/u2f/SkEcdsaPublicKey.java | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkED25519PublicKey.java b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkED25519PublicKey.java index 2f9f9ee27..bae73c3a1 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkED25519PublicKey.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkED25519PublicKey.java @@ -19,6 +19,7 @@ package org.apache.sshd.common.config.keys.u2f; import java.util.Objects; + import net.i2p.crypto.eddsa.EdDSAPublicKey; public class SkED25519PublicKey implements SecurityKeyPublicKey { @@ -95,7 +96,7 @@ public boolean equals(Object obj) { SkED25519PublicKey other = (SkED25519PublicKey) obj; return Objects.equals(this.appName, other.appName) - && this.noTouchRequired == other.noTouchRequired - && Objects.equals(this.delegatePublicKey, other.delegatePublicKey); + && this.noTouchRequired == other.noTouchRequired + && Objects.equals(this.delegatePublicKey, other.delegatePublicKey); } } diff --git a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkEcdsaPublicKey.java b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkEcdsaPublicKey.java index 1ee2112c5..666ae11ad 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkEcdsaPublicKey.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/config/keys/u2f/SkEcdsaPublicKey.java @@ -18,8 +18,8 @@ */ package org.apache.sshd.common.config.keys.u2f; -import java.util.Objects; import java.security.interfaces.ECPublicKey; +import java.util.Objects; public class SkEcdsaPublicKey implements SecurityKeyPublicKey { @@ -95,7 +95,7 @@ public boolean equals(Object obj) { SkEcdsaPublicKey other = (SkEcdsaPublicKey) obj; return Objects.equals(this.appName, other.appName) - && this.noTouchRequired == other.noTouchRequired - && Objects.equals(this.delegatePublicKey, other.delegatePublicKey); + && this.noTouchRequired == other.noTouchRequired + && Objects.equals(this.delegatePublicKey, other.delegatePublicKey); } }