Fixed the MD5Encoder deprecation warning.
This commit is contained in:
parent
0fc5232107
commit
6b6e3bd897
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import java.security.NoSuchAlgorithmException;
|
|||
import java.security.SecureRandom;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.tomcat.util.security.MD5Encoder;
|
||||
import org.apache.tomcat.util.buf.HexUtils;
|
||||
|
||||
/**
|
||||
* Authenticator supporting the DIGEST auth method.
|
||||
|
@ -140,7 +140,7 @@ public class DigestAuthenticator extends Authenticator {
|
|||
MessageDigest md = MessageDigest.getInstance("MD5");
|
||||
byte[] thedigest = md.digest(bytesOfMessage);
|
||||
|
||||
return MD5Encoder.encode(thedigest);
|
||||
return HexUtils.toHexString(thedigest);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue