| |
|
| java.lang.Object org.columba.mail.pgp.PGPPassChecker
PGPPassChecker | public class PGPPassChecker (Code) | | Checks via a dialog if a passphrase (given from the user over the dialog) can
be used to sign a testmessage. The dialog-test is a while loop, which breaks
only if the user cancels the dialog or the passphrase is correct.
author: waffel |
Method Summary | |
public boolean | checkPassphrase(JSCFConnection con) Checks with a test string if the test String can be signed. | public static PGPPassChecker | getInstance() Returns the instance of the class. |
checkPassphrase | public boolean checkPassphrase(JSCFConnection con) throws JSCFException(Code) | | Checks with a test string if the test String can be signed. The user is
ask for his passphrase until the passphrase is ok or the user cancels the
dialog. If the user cancels the dialog the method returns false. This
method return normal only if the user give the right passphrase.
Parameters: con - JSCFConnection used to check a passphrase given by a dialog Returns true if the given passphrase (via a dialog) is correctand the user can sign a teststring with the passphrase from thedialog. Returns false if the user cancels the dialog. exception: JSCFException - if the concrete JSCF implementation has real probelms (forexample a extern tool cannot be found) |
getInstance | public static PGPPassChecker getInstance()(Code) | | Returns the instance of the class. If no instance is created, a new
instance are created.
a instance of this class. |
|
|
|