Digital Authentication Framework  6.0.1.37
Public Member Functions | List of all members
com.good.daf.app.PassphraseCallback Interface Reference

Interface implemented by objects which can block while obtaining a user passphrase. More...

Public Member Functions

byte[] getPassphrase () throws Exception
 Called when an authentication process needs a passphrase, and it wasn't supplied ahead of time. More...
 

Detailed Description

Interface implemented by objects which can block while obtaining a user passphrase.

Member Function Documentation

byte [] com.good.daf.app.PassphraseCallback.getPassphrase ( ) throws Exception

Called when an authentication process needs a passphrase, and it wasn't supplied ahead of time.

This call should block until a passphrase is available. This may involve user interaction for a long period of time (say, 60 seconds).

This call is made on the background thread: you should not directly manipulate user interface elements in this call. However, you can use Activity.runOnUiThread() to execute a Runnable which manipulates the UI, or start a fresh activity to obtain the passphrase.

If you fail to obtain a passphrase, you can throw any Exception from this call which will cancel the process. Your ProgressCallback.onError handler will be called on the UI thread with that Exception so it can be communicated to the user.

Returns
the obtained passphrase (must not be null).

The documentation for this interface was generated from the following file: