Fix bbb-web doesnt work with checksumHash=sha256

This commit is contained in:
Gustavo Trott 2022-09-28 21:21:17 -03:00
parent be81a0e32a
commit 7ec8e81b45
2 changed files with 2 additions and 0 deletions

View File

@ -953,6 +953,7 @@ public class ParamsProcessorUtil {
case "sha256":
cs = DigestUtils.sha256Hex(data);
log.info("SHA256 {}", cs);
break;
case "sha384":
cs = DigestUtils.sha384Hex(data);
log.info("SHA384 {}", cs);

View File

@ -48,6 +48,7 @@ public class GetChecksumValidator implements ConstraintValidator<GetChecksumCons
case "sha256":
createdCheckSum = DigestUtils.sha256Hex(data);
log.info("SHA256 {}", createdCheckSum);
break;
case "sha384":
createdCheckSum = DigestUtils.sha384Hex(data);
log.info("SHA384 {}", createdCheckSum);