This is an automated email from the ASF dual-hosted git repository. twolf pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
commit 59d9961c81ea6b1a3281201e0b5ced414dbff509 Author: Thomas Wolf <[email protected]> AuthorDate: Thu Aug 28 12:39:44 2025 +0200 Fix typos in comments in UserAuthPublicKeySkTest --- .../java/org/apache/sshd/server/auth/UserAuthPublicKeySkTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sshd-core/src/test/java/org/apache/sshd/server/auth/UserAuthPublicKeySkTest.java b/sshd-core/src/test/java/org/apache/sshd/server/auth/UserAuthPublicKeySkTest.java index cba684dc4..ca03638ec 100644 --- a/sshd-core/src/test/java/org/apache/sshd/server/auth/UserAuthPublicKeySkTest.java +++ b/sshd-core/src/test/java/org/apache/sshd/server/auth/UserAuthPublicKeySkTest.java @@ -72,7 +72,7 @@ class UserAuthPublicKeySkTest extends BaseTestSupport { // Determine expected outcome boolean expectSuccess = true; if ((flagsOnSig & 1) == 0 && (authFlags & 1) == 0) { - // Incoming key/signature doesn't have "user presence" flag but auth requires is (no-touch-required not set) + // Incoming key/signature doesn't have "user presence" flag but auth requires it (no-touch-required not set) expectSuccess = false; } if ((authFlags & 4) != 0 && (flagsOnSig & 4) == 0) { @@ -81,8 +81,7 @@ class UserAuthPublicKeySkTest extends BaseTestSupport { } // Generate a "fake" SK EC key. "Fake" because we actually use a normal EC key as basis, so that we have the - // private key - // and can generate a signature. + // private key and can generate a signature. KeyPairGenerator generator = SecurityUtils.getKeyPairGenerator("EC"); generator.initialize(256); KeyPair pair = generator.generateKeyPair(); @@ -144,7 +143,7 @@ class UserAuthPublicKeySkTest extends BaseTestSupport { @SuppressWarnings({ "unchecked", "rawtypes" }) private MockSession createSession() throws Exception { - // Create a mock ServerSession. We can't simple mock the server session since the authenticator might want to + // Create a mock ServerSession. We can't simply mock the server session since the authenticator might want to // set an attribute on it. ServerFactoryManager manager = Mockito.mock(ServerFactoryManager.class); Factory<? extends Random> randomFactory = new SingletonRandomFactory(JceRandomFactory.INSTANCE);
