IAIK PKCS#11 Provider API Documentation
version 1.6

iaik.apps.util.passphrase
Interface PassphrasePrompt

All Superinterfaces:
PassphraseInterfacce
All Known Implementing Classes:
PassphraseConsoleDialog, PassphraseDialog, PassphraseFrameDialog, PassphraseHolder

public interface PassphrasePrompt
extends PassphraseInterfacce

Interface to objects that prompt passphrases from users.

Author:
Karl Scheibelhofer

Method Summary
 char[] promptPassphrase()
          Prompt the passphrase from the user after displaying the prompt message to him.
 
Methods inherited from interface iaik.apps.util.passphrase.PassphraseInterfacce
isCancelAllowed, setCancelAllowed, setMessage, setProtectedResourceInfo
 

Method Detail

promptPassphrase

char[] promptPassphrase()
Prompt the passphrase from the user after displaying 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:
The passphrase the user entered (not including any return character used the finish input).
Postconditions
isCancelAllowed() or ((not isCancelAllowed()) and (result <> null))

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