IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.apps.util.passphrase
Interface NewPassphrasePrompt

All Superinterfaces:
PassphraseInterfacce
All Known Implementing Classes:
NewPassphraseConsoleDialog, NewPassphraseDialog, NewPassphraseFrameDialog, NewPassphraseHolder

public interface NewPassphrasePrompt
extends PassphraseInterfacce

This is the interface for prompting a new passphrase from the user.


Method Summary
 char[][] promptNewPassphrase()
          Prompt the new passphrase and the old passphrase if required from the user.
 void setOldPassphraseRequired(boolean oldPassphraseRequired)
          Set if the use must enter the old passphrase in addition to the new.
 
Methods inherited from interface iaik.apps.util.passphrase.PassphraseInterfacce
isCancelAllowed, setCancelAllowed, setMessage, setProtectedResourceInfo
 

Method Detail

setOldPassphraseRequired

void setOldPassphraseRequired(boolean oldPassphraseRequired)
Set if the use must enter the old passphrase in addition to the new.

Parameters:
oldPassphraseRequired - True, the use must enter the old passphrase in addition to the new.

promptNewPassphrase

char[][] promptNewPassphrase()
Prompt the new passphrase and the old passphrase if required from the user. Display the prompt message to him. Block, until user has finished. If user is allowed to cancel the dialog, and the user cancels the dialog, then return null.

Returns:
An arrray of two char arrays. The first array is the old passphrase or null, if this has not been requested. The second is the new passphrase. This is null, if the user canceled the input.
Postconditions
(not isCancelAllowed()) implies ((result <> null) and (result.length == 2))

IAIK PKCS#11 Provider API Documentation
version 1.6

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.6