| java.lang.Object org.columba.core.config.DefaultItem org.columba.mail.config.SecurityItem
SecurityItem | public class SecurityItem extends DefaultItem (Code) | | author: waffel / Aug 5, 2005 2:29:21 PM author: Security item to holding data related to security aspects like passphrase and author: digest algorithm. |
Constructor Summary | |
public | SecurityItem(XmlElement e) Creates a new SecurityItem instance and sets the passphrase empty. |
ALWAYS_ENCRYPT | final public static String ALWAYS_ENCRYPT(Code) | | |
SecurityItem | public SecurityItem(XmlElement e)(Code) | | Creates a new SecurityItem instance and sets the passphrase empty.
Parameters: e - XML element to be used for this item. |
clearPassphrase | public void clearPassphrase()(Code) | | Sets the passphase of this item to an empty string.
|
getDigestAlgorithm | public String getDigestAlgorithm()(Code) | | Sets the digest algorithm to be used in an security operation like
encrypting or decrypting. If the digest algorithm was not set, the method
returns an empty string.
returns the digest algorithm of this security item. |
getPassphrase | public String getPassphrase()(Code) | | Returns the passphrase of the scurity item. If the passphrase was not
set, an empty string is returned.
the passphrase of this item. |
setDigestAlgorithm | public void setDigestAlgorithm(String _digestAlgorithm)(Code) | | Sets the digest algorithm for this security item.
Parameters: _digestAlgorithm - algorithm to be set. |
setPassphrase | public void setPassphrase(String s)(Code) | | Sets the passphrase to the given string. The passphrase is not scrambled
or encrypted in this method. Only plain passphrase are supported.
Parameters: s - string which should assigned to the passphrase. |
Methods inherited from org.columba.core.config.DefaultItem | public Object clone()(Code)(Java Doc) public boolean contains(String key)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String get(String key)(Code)(Java Doc) public boolean getBoolean(String key)(Code)(Java Doc) public boolean getBoolean(String pathToElement, String key)(Code)(Java Doc) public boolean getBooleanWithDefault(String key, boolean defaultValue)(Code)(Java Doc) public boolean getBooleanWithDefault(String pathToElement, String key, boolean defaultValue)(Code)(Java Doc) public int getChildCount()(Code)(Java Doc) public XmlElement getChildElement(int index)(Code)(Java Doc) public XmlElement getChildElement(String pathToElement, int index)(Code)(Java Doc) public XmlElement getElement(String pathToElement)(Code)(Java Doc) public XmlElement getElement(String pathToElement, boolean create)(Code)(Java Doc) public int getInteger(String key)(Code)(Java Doc) public int getInteger(String pathToElement, String key)(Code)(Java Doc) public int getIntegerWithDefault(String key, int defaultValue)(Code)(Java Doc) public int getIntegerWithDefault(String pathToElement, String key, int defaultValue)(Code)(Java Doc) public XmlElement getRoot()(Code)(Java Doc) public String getString(String pathToElement, String key)(Code)(Java Doc) public String getStringWithDefault(String key, String defaultValue)(Code)(Java Doc) public String getStringWithDefault(String pathToElement, String key, String defaultValue)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void notifyObservers(String path)(Code)(Java Doc) public void setBoolean(String key, boolean value)(Code)(Java Doc) public void setBoolean(String pathToElement, String key, boolean value)(Code)(Java Doc) public void setInteger(String key, int value)(Code)(Java Doc) public void setInteger(String pathToElement, String key, int value)(Code)(Java Doc) public void setString(String key, String newValue)(Code)(Java Doc) public void setString(String pathToElement, String key, String newValue)(Code)(Java Doc)
|
|
|