freiheit.com technologies gmbh

com.freiheit.gnupg
Class GnuPGPassphraseConsole

java.lang.Object
  extended by com.freiheit.gnupg.GnuPGPassphraseConsole
All Implemented Interfaces:
GnuPGPassphraseListener

public class GnuPGPassphraseConsole
extends java.lang.Object
implements GnuPGPassphraseListener

Requests a passphrase for a crypto operation from the command line. This is triggered by gpgme. You must register this as a listener to the GnuPGContext. It stills echoes the passphrase on the console. Remember, this is an alpha release...

Author:
Stefan Richter, stefan@freiheit.com
See Also:
GnuPGContext

Constructor Summary
GnuPGPassphraseConsole()
          Default-Constructor.
 
Method Summary
 java.lang.String getPassphrase(java.lang.String hint, java.lang.String passphraseInfo, int wasBad)
          Prints to the console, asks for the passphrase and returns it to gpgme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnuPGPassphraseConsole

public GnuPGPassphraseConsole()
Default-Constructor.

Method Detail

getPassphrase

public java.lang.String getPassphrase(java.lang.String hint,
                                      java.lang.String passphraseInfo,
                                      int wasBad)
Prints to the console, asks for the passphrase and returns it to gpgme.

Specified by:
getPassphrase in interface GnuPGPassphraseListener
Parameters:
hint - TODO
passphraseInfo - TODO
wasBad - TODO
Returns:
passphrase to be supplied to gpgme callback (MUST include a \n at the end of the string)
See Also:
GnuPGContext

freiheit.com technologies gmbh

© 2005 freiheit.com technologies gmbh