]> WPIA git - gigi.git/blob - src/org/cacert/gigi/dbObjects/Digest.java
Test+implement: object cache for email and domain.
[gigi.git] / src / org / cacert / gigi / dbObjects / Digest.java
1 package org.cacert.gigi.dbObjects;
2
3 public enum Digest {
4     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(null), SHA512("Highest protection against hash collision attacks of the algorithms offered here.");
5
6     private final String exp;
7
8     private Digest(String explanation) {
9         exp = explanation;
10     }
11
12     public String getExp() {
13         return exp;
14     }
15
16     public static Digest getDefault() {
17         return SHA256;
18     }
19 }