1 package org.columba.mail.config; 17 18 import org.columba.core.config.DefaultItem; 19 import org.columba.core.xml.XmlElement; 20 21 27 public class SecurityItem extends DefaultItem { 28 private String passphrase = ""; 29 30 private String digestAlgorithm; 31 32 public static final String ALWAYS_ENCRYPT = "always_encrypt"; 33 34 public static final String ALWAYS_SIGN = "always_sign"; 35 36 public static final String ENABLED = "enabled"; 37 38 public static final String PATH = "path"; 39 40 public static final String ID = "id"; 41 42 48 public SecurityItem(XmlElement e) { 49 super(e); 50 51 this.passphrase = ""; 52 } 53 54 60 public String getPassphrase() { 61 return this.passphrase; 62 } 63 64 67 public void clearPassphrase() { 68 this.passphrase = ""; 69 } 70 71 78 public void setPassphrase(String s) { 79 this.passphrase = s; 80 } 81 82 89 public String getDigestAlgorithm() { 90 return this.digestAlgorithm; 91 } 92 93 99 public void setDigestAlgorithm(String _digestAlgorithm) { 100 this.digestAlgorithm = _digestAlgorithm; 101 } 102 } 103 | Popular Tags |