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

File RNGAlgorithm.java

 

Coverage histogram

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

Code metrics

0
0
1
1
34
9
1
-
0
1
1

Classes

Class Line # Actions
RNGAlgorithm 6 0 0% 1 0
1.0100%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package org.europa.together.domain;
2   
3    /**
4    * Random Number Generator Algorithm.
5    */
 
6    public enum RNGAlgorithm {
7   
8    /**
9    * The name of the pseudo-random number generation (PRNG) algorithm supplied
10    * by the SUN provider. This algorithm uses SHA-1 as the foundation of the
11    * PRNG. It computes the SHA-1 hash over a true-random seed value
12    * concatenated with a 64-bit counter which is incremented by 1 for each
13    * operation. From the 160-bit SHA-1 output, only 64 bits are used.
14    */
15    SHA1PRNG("SHA1PRNG"),
16    /**
17    * Obtains random numbers from the underlying native OS. No assertions are
18    * made as to the blocking nature of generating these numbers.
19    */
20    NativePRNG("NativePRNG"),
21    /**
22    * Obtains random numbers from the underlying installed and configured PKCS
23    * #11 library.
24    */
25    PKCS11("PKCS11"),
26    /**
27    * An algorithm using DRBG mechanisms as defined in NIST SP 800-90Ar1.
28    */
29    DRBG("DRBG");
30   
31    //CONSTRUCTOR
 
32  4 toggle RNGAlgorithm(final String value) {
33    }
34    }