]> WPIA git - gigi.git/blob - src/org/cacert/gigi/dbObjects/Digest.java
fix: Avoid warning when PoJAM is disabled
[gigi.git] / src / org / cacert / gigi / dbObjects / Digest.java
1 package org.cacert.gigi.dbObjects;
2
3 import org.cacert.gigi.output.template.Outputable;
4 import org.cacert.gigi.output.template.TranslateCommand;
5
6 public enum Digest {
7     SHA256("Currently recommended, because the other algorithms" + " might break on some older versions of the GnuTLS library" + " (older than 3.x) still shipped in Debian for example."), SHA384(""), SHA512("Highest protection against hash collision attacks of the algorithms offered here.");
8
9     private final Outputable exp;
10
11     private Digest(String explanation) {
12         exp = new TranslateCommand(explanation);
13     }
14
15     public Outputable getExp() {
16         return exp;
17     }
18
19     public static Digest getDefault() {
20         return SHA256;
21     }
22
23 }