This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 072cb51b0c Prepare for automatic formatting
072cb51b0c is described below

commit 072cb51b0cdb514f3bc6387cb2bc99037315defa
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Aug 29 18:54:26 2025 +0100

    Prepare for automatic formatting
---
 .../catalina/authenticator/TestDigestAuthenticator.java     | 13 ++++++++-----
 .../catalina/authenticator/TestFormAuthenticatorA.java      |  4 +---
 .../catalina/authenticator/TestFormAuthenticatorB.java      |  4 +---
 .../catalina/authenticator/TestFormAuthenticatorC.java      |  4 +---
 4 files changed, 11 insertions(+), 14 deletions(-)

diff --git 
a/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java 
b/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java
index 60cf849854..d93550805a 100644
--- a/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java
+++ b/test/org/apache/catalina/authenticator/TestDigestAuthenticator.java
@@ -318,17 +318,20 @@ public class TestDigestAuthenticator extends 
TomcatBaseTest {
     }
 
     /*
+     * @formatter:off
+     *
      * Notes from RFC2617
      * H(data) = MD5(data)
      * KD(secret, data) = H(concat(secret, ":", data))
      * A1 = unq(username-value) ":" unq(realm-value) ":" passwd
      * A2 = Method ":" digest-uri-value
      * request-digest  = <"> < KD ( H(A1),     unq(nonce-value)
-                                    ":" nc-value
-                                    ":" unq(cnonce-value)
-                                    ":" unq(qop-value)
-                                    ":" H(A2)
-                                   ) <">
+     *                              ":" nc-value
+     *                              ":" unq(cnonce-value)
+     *                              ":" unq(qop-value)
+     *                              ":" H(A2)
+     *                             ) <">
+     * @formatter:on
      */
     private static String buildDigestResponse(String user, String pwd,
             String uri, String realm, String nonce, String opaque, String nc,
diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java 
b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
index 571da7e087..3c1a72d621 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
@@ -348,9 +348,6 @@ public class TestFormAuthenticatorA extends TomcatBaseTest {
      * Repeatedly access the protected resource after the client has
      * successfully logged-in to the webapp. The current session attributes
      * will be used and cannot be changed.
-     *  3. after successful login, follow the redirect to the original page
-     *  4. repeatedly access the protected resource to demonstrate
-     *     persistence of the authenticated session
      *
      * @param resourceMethod HTTP method for accessing the protected resource
      * @param protectedUri to access (with or without sessionid)
@@ -416,6 +413,7 @@ public class TestFormAuthenticatorA extends TomcatBaseTest {
          *   1. fully qualified uri.
          *   2. minimal uri without webapp path.
          *   3. null - use the default protected resource
+         *
          * Cookies are sent if available and supported by the test. Otherwise, 
the
          * caller is expected to have provided a session id as a path 
parameter.
          */
diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java 
b/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java
index e4705468f0..d182fa8240 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorB.java
@@ -240,9 +240,6 @@ public class TestFormAuthenticatorB extends TomcatBaseTest {
      * Repeatedly access the protected resource after the client has
      * successfully logged-in to the webapp. The current session attributes
      * will be used and cannot be changed.
-     *  3. after successful login, follow the redirect to the original page
-     *  4. repeatedly access the protected resource to demonstrate
-     *     persistence of the authenticated session
      *
      * @param resourceMethod HTTP method for accessing the protected resource
      * @param protectedUri to access (with or without sessionid)
@@ -308,6 +305,7 @@ public class TestFormAuthenticatorB extends TomcatBaseTest {
          *   1. fully qualified uri.
          *   2. minimal uri without webapp path.
          *   3. null - use the default protected resource
+         *
          * Cookies are sent if available and supported by the test. Otherwise, 
the
          * caller is expected to have provided a session id as a path 
parameter.
          */
diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java 
b/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java
index af4bc5818a..d9de179427 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorC.java
@@ -242,9 +242,6 @@ public class TestFormAuthenticatorC extends TomcatBaseTest {
      * Repeatedly access the protected resource after the client has
      * successfully logged-in to the webapp. The current session attributes
      * will be used and cannot be changed.
-     *  3. after successful login, follow the redirect to the original page
-     *  4. repeatedly access the protected resource to demonstrate
-     *     persistence of the authenticated session
      *
      * @param resourceMethod HTTP method for accessing the protected resource
      * @param protectedUri to access (with or without sessionid)
@@ -310,6 +307,7 @@ public class TestFormAuthenticatorC extends TomcatBaseTest {
          *   1. fully qualified uri.
          *   2. minimal uri without webapp path.
          *   3. null - use the default protected resource
+         *
          * Cookies are sent if available and supported by the test. Otherwise, 
the
          * caller is expected to have provided a session id as a path 
parameter.
          */


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to