X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FDigest.java;h=59247121c5ef04c064386b40270f674efd1fe488;hb=73ac9fa5e36efef14464f40294e43ef85fadf320;hp=01b7c5410a234a18161dc6327d60c7f4ff6b7234;hpb=a7aea81ff9eebb35aef0f91dfa8b5e3c797568f8;p=gigi.git diff --git a/src/org/cacert/gigi/dbObjects/Digest.java b/src/org/cacert/gigi/dbObjects/Digest.java index 01b7c541..59247121 100644 --- a/src/org/cacert/gigi/dbObjects/Digest.java +++ b/src/org/cacert/gigi/dbObjects/Digest.java @@ -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; }