This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new dbe32b9ddd Drop unused methods
dbe32b9ddd is described below
commit dbe32b9ddd113586ee5c4275b90e819e5d61cd9b
Author: remm <[email protected]>
AuthorDate: Fri May 31 10:49:16 2024 +0200
Drop unused methods
---
.../authenticator/DigestAuthenticator.java | 34 ----------------------
1 file changed, 34 deletions(-)
diff --git a/java/org/apache/catalina/authenticator/DigestAuthenticator.java
b/java/org/apache/catalina/authenticator/DigestAuthenticator.java
index 78f072c685..0ce23324e9 100644
--- a/java/org/apache/catalina/authenticator/DigestAuthenticator.java
+++ b/java/org/apache/catalina/authenticator/DigestAuthenticator.java
@@ -317,40 +317,6 @@ public class DigestAuthenticator extends AuthenticatorBase
{
// ------------------------------------------------------ Protected Methods
- /**
- * Removes the quotes on a string. RFC2617 states quotes are optional for
all parameters except realm.
- *
- * @param quotedString The quoted string
- * @param quotesRequired <code>true</code> if quotes were required
- *
- * @return The unquoted string
- * @deprecated This will be removed in Tomcat 11 onwards. Unused.
- */
- @Deprecated
- protected static String removeQuotes(String quotedString, boolean
quotesRequired) {
- // support both quoted and non-quoted
- if (quotedString.length() > 0 && quotedString.charAt(0) != '"' &&
!quotesRequired) {
- return quotedString;
- } else if (quotedString.length() > 2) {
- return quotedString.substring(1, quotedString.length() - 1);
- } else {
- return "";
- }
- }
-
- /**
- * Removes the quotes on a string.
- *
- * @param quotedString The quoted string
- *
- * @return The unquoted string
- * @deprecated This will be removed in Tomcat 11 onwards. Unused.
- */
- @Deprecated
- protected static String removeQuotes(String quotedString) {
- return removeQuotes(quotedString, false);
- }
-
/**
* Generate a unique token. The token is generated according to the
following pattern. NOnceToken = Base64 (
* NONCE_DIGEST ( client-IP ":" time-stamp ":" private-key ) ).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]