1. Project Clover database Wed Jan 17 2024 23:40:18 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
26
16
2
1
1
2
1

Classes

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

Contributing tests

This file is covered by 28 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    MD5("MD5"),
10    SHA("SHA"),
11    SHA256("SHA-256"),
12    SHA512("SHA-512"),
13    SHA3512("SHA3-512");
14   
15    private final String value;
16   
17    //CONSTRUCTOR
 
18  5 toggle HashAlgorithm(final String value) {
19  5 this.value = value;
20    }
21   
 
22  629 toggle @Override
23    public String toString() {
24  629 return this.value;
25    }
26    }