Skip to content

Commit

Permalink
Fix formatting in U2F key classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaswolf committed Apr 28, 2024
1 parent fa1dd24 commit 1d35569
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -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<EdDSAPublicKey> {
Expand Down Expand Up @@ -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);
}
}
Expand Up @@ -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<ECPublicKey> {

Expand Down Expand Up @@ -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);
}
}

0 comments on commit 1d35569

Please sign in to comment.