Skip to content

Commit

Permalink
Drop unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rmaucher committed May 31, 2024
1 parent a3f9f46 commit dbe32b9
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions java/org/apache/catalina/authenticator/DigestAuthenticator.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,40 +317,6 @@ protected String getAuthMethod() {
// ------------------------------------------------------ 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 ) ).
Expand Down

0 comments on commit dbe32b9

Please sign in to comment.