private static final long serialVersionUID = 6964687027713533075L;
public static final String TYPE = "dns-01";
public Dns01Challenge(Session session) {
super(session);
}
<BUG>public String getDigest() {
try {
MessageDigest md = MessageDigest.getInstance("SHA-256");
md.update(getAuthorization().getBytes("UTF-8"));
byte[] digest = md.digest();
return Base64Url.encode(digest);
} catch (NoSuchAlgorithmException | UnsupportedEncodingException ex) {
throw new AcmeProtocolException("Failed to compute digest", ex);
}</BUG>
}

private static final long serialVersionUID = 6964687027713533075L;
public static final String TYPE = "dns-01";
public Dns01Challenge(Session session) {
super(session);
}
public String getDigest() {
return base64UrlEncode(sha256hash(getAuthorization()));
}
