| 1 | package org.europa.together.domain; | |
| 2 | ||
| 3 | /** | |
| 4 | * Available Hash algorithms.<br> | |
| 5 | * https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html | |
| 6 | */ | |
| 7 | public enum HashAlgorithm { | |
| 8 | ||
| 9 | /** | |
| 10 | * MD5. | |
| 11 | */ | |
| 12 | MD5("MD5"), | |
| 13 | /** | |
| 14 | * SHA. | |
| 15 | */ | |
| 16 | SHA("SHA"), | |
| 17 | /** | |
| 18 | * SHA 256. | |
| 19 | */ | |
| 20 | SHA256("SHA-256"), | |
| 21 | /** | |
| 22 | * SHA 512. | |
| 23 | */ | |
| 24 | SHA512("SHA-512"), | |
| 25 | /** | |
| 26 | * SHA3 512. | |
| 27 | */ | |
| 28 | SHA3512("SHA3-512"); | |
| 29 | ||
| 30 | private final String value; | |
| 31 | ||
| 32 | //CONSTRUCTOR | |
| 33 | HashAlgorithm(final String value) { | |
| 34 | this.value = value; | |
| 35 | } | |
| 36 | ||
| 37 | public String getValue() { | |
| 38 |
1
1. getValue : replaced return value with "" for org/europa/together/domain/HashAlgorithm::getValue → KILLED |
return this.value; |
| 39 | } | |
| 40 | } | |
Mutations | ||
| 38 |
1.1 |