DataTypeConverter is removed in JDK 11. Removes this reliance in DIgestChallengeProcessor to future-proof it.
Instantiates MessageDigest and SecureRandom because creating the message digest is a long process and creating the SecureRandom each time getHeader is called could result in the same seed.
There was a warning about it being platform dependent because using CP1252 encoding. Changed to use UTF-8 source encoding
Fixes:
MessageDigest
andSecureRandom
because creating the message digest is a long process and creating the SecureRandom each timegetHeader
is called could result in the same seed.static
imports first.*
importsgetHexValue
method.