]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/Digest.java
additional lang-cleanup
[gigi.git] / src / org / cacert / gigi / dbObjects / Digest.java
index 01b7c5410a234a18161dc6327d60c7f4ff6b7234..59247121c5ef04c064386b40270f674efd1fe488 100644 (file)
@@ -1,15 +1,18 @@
 package org.cacert.gigi.dbObjects;
 
+import org.cacert.gigi.output.template.Outputable;
+import org.cacert.gigi.output.template.TranslateCommand;
+
 public enum Digest {
-    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.");
+    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.");
 
-    private final String exp;
+    private final Outputable exp;
 
     private Digest(String explanation) {
-        exp = explanation;
+        exp = new TranslateCommand(explanation);
     }
 
-    public String getExp() {
+    public Outputable getExp() {
         return exp;
     }