com.freiheit.gnupg
Interface GnuPGPassphraseListener
- All Known Implementing Classes:
- GnuPGPassphraseConsole, GnuPGPassphraseWindow
public interface GnuPGPassphraseListener
This is the listener interface you need to implement, if you want
to react to the passphrase callbacks of the gpgme library for
yourself. In this way, you can for example lookup passphrases from a
database or so and return them to gpgme.
There are also two pre-fabricated listener.
- Author:
- Stefan Richter, stefan@freiheit.com
- See Also:
GnuPGPassphraseWindow
,
GnuPGPassphraseConsole
Method Summary |
java.lang.String |
getPassphrase(java.lang.String hint,
java.lang.String passphraseInfo,
int wasBad)
This method will be called by gpgme, if a passphrase is necessary
to complete a crypto operation. |
getPassphrase
java.lang.String getPassphrase(java.lang.String hint,
java.lang.String passphraseInfo,
int wasBad)
- This method will be called by gpgme, if a passphrase is necessary
to complete a crypto operation.
Implement this interface and register it with the GnuPGContext
on which you are operating.
- Parameters:
hint
- TODOpassphraseInfo
- TODOwasBad
- TODO
- Returns:
- passphrase to be supplied to gpgme callback (MUST include a \n at the end of the string)
- See Also:
GnuPGContext
© 2005 freiheit.com technologies gmbh