1. Project Clover database Mon Dec 22 2025 14:59:38 CST
  2. Package org.europa.together.domain

File HashAlgorithm.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
2
2
1
40
15
2
1
1
2
1

Classes

Class Line # Actions
HashAlgorithm 7 2 0% 2 0
1.0100%
 

Contributing tests

This file is covered by 41 tests. .

Source view

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  5 toggle HashAlgorithm(final String value) {
34  5 this.value = value;
35    }
36   
 
37  567 toggle public String getValue() {
38  567 return this.value;
39    }
40    }