Digital Authentication Framework
6.0.1.37
|
A collection of parameters for completing an DAF password change operation in a background thread. More...
Public Member Functions | |
void | start () |
Start the password change process. More... | |
void | setState (byte[] st) |
Set the state string. More... | |
byte[] | getState () |
byte[] | getUserString () |
byte[] | getNewUserString () |
void | setNewUserString (byte[] us) |
Sets the new user string, which will be stored after this protocol completes successfully. More... | |
void | setExistingPassphrase (byte[] pass) |
Inputs the pre-collected existing passphrase. More... | |
byte[] | getExistingPassphrase () |
Gets the pre-collected existing passphrase. More... | |
void | setExistingPassphraseCallback (PassphraseCallback cb) |
Sets the existing passphrase collection callback. More... | |
void | setNewPassphrase (byte[] pass) |
Inputs the pre-collected new passphrase. More... | |
byte[] | getNewPassphrase () |
Gets the pre-collected new passphrase. More... | |
void | setNewPassphraseCallback (PassphraseCallback cb) |
Sets the 'new passphrase' collection callback. More... | |
void | setAuthToken (byte[] token) |
Sets the DAF authentication token. More... | |
byte[] | getAuthToken () |
Public Member Functions inherited from com.good.daf.app.GeneralProcessParams | |
void | setDevice (DADevice dev) |
The DADevice to use in the protocol. More... | |
DADevice | getDevice () |
void | setProgressCallback (ProgressCallback cb) |
Sets the progress callback which will be triggered during the protocol. More... | |
void | onStart () |
Called on the UI thread when the background processing thread is about to start work. More... | |
void | onSuccess () |
Called on the UI thread when the background processing thread completes its work successfully. More... | |
void | onError (Exception e) |
Called on the UI thread when the background processing thread fails due to an error. More... | |
Protected Attributes | |
byte[] | state |
byte[] | existingPassphrase |
byte[] | newPassphrase |
byte[] | newUserString = null |
byte[] | authToken = new byte[] {} |
PassphraseCallback | existingPassphraseCallback |
PassphraseCallback | newPassphraseCallback |
Protected Attributes inherited from com.good.daf.app.GeneralProcessParams | |
DADevice | device |
ProgressCallback | progressCallback |
A collection of parameters for completing an DAF password change operation in a background thread.
byte [] com.good.daf.app.ChangePassphraseProcessParams.getAuthToken | ( | ) |
byte [] com.good.daf.app.ChangePassphraseProcessParams.getExistingPassphrase | ( | ) |
Gets the pre-collected existing passphrase.
byte [] com.good.daf.app.ChangePassphraseProcessParams.getNewPassphrase | ( | ) |
Gets the pre-collected new passphrase.
byte [] com.good.daf.app.ChangePassphraseProcessParams.getNewUserString | ( | ) |
byte [] com.good.daf.app.ChangePassphraseProcessParams.getState | ( | ) |
byte [] com.good.daf.app.ChangePassphraseProcessParams.getUserString | ( | ) |
void com.good.daf.app.ChangePassphraseProcessParams.setAuthToken | ( | byte[] | token | ) |
Sets the DAF authentication token.
The authentication token is a sequence of bytes with hardware-specific format and semantics, which can be used by the hardware driver to authenticate the user.
The default authtoken is the empty string.
token | new auth token |
void com.good.daf.app.ChangePassphraseProcessParams.setExistingPassphrase | ( | byte[] | pass | ) |
Inputs the pre-collected existing passphrase.
The 'existing passphrase' here is the one the user is changing from.
If you know this process will always require a passphrase, you can collect it from the user before beginning the process and input it here.
This overrides any callback passed to setExistingPassphraseCallback.
pass | pre-collected existing passphrase |
void com.good.daf.app.ChangePassphraseProcessParams.setExistingPassphraseCallback | ( | PassphraseCallback | cb | ) |
Sets the existing passphrase collection callback.
See the documentation for PassphraseCallback for the rules surrounding this call.
setExistingPassphrase() overrides this method.
cb | new 'existing passphrase' callback implementor |
void com.good.daf.app.ChangePassphraseProcessParams.setNewPassphrase | ( | byte[] | pass | ) |
Inputs the pre-collected new passphrase.
The 'new passphrase' here is the one the user is changing to.
If you know this process will always require a passphrase, you can collect it from the user before beginning the process and input it here.
This overrides any callback passed to setNewPassphraseCallback.
pass | pre-collected new passphrase |
void com.good.daf.app.ChangePassphraseProcessParams.setNewPassphraseCallback | ( | PassphraseCallback | cb | ) |
Sets the 'new passphrase' collection callback.
See the documentation for PassphraseCallback for the rules surrounding this call.
setNewPassphrase() overrides this method.
cb | new 'new passphrase' callback implementor |
void com.good.daf.app.ChangePassphraseProcessParams.setNewUserString | ( | byte[] | us | ) |
Sets the new user string, which will be stored after this protocol completes successfully.
If you do not call this method, the user string will keep its old value.
us | the new user string value |
void com.good.daf.app.ChangePassphraseProcessParams.setState | ( | byte[] | st | ) |
Set the state string.
This is called for you by DAFApplication.changePassphrase().
st | new state string |
void com.good.daf.app.ChangePassphraseProcessParams.start | ( | ) |
Start the password change process.
This call completes quickly; the actual process takes place in a background worker thread. Provide a ProgressCallback if you want to be notified of the worker thread's results.