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); } }