org.gudy.azureus2.ui.swt.auth
Class CryptoWindow

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.auth.CryptoWindow
All Implemented Interfaces:
CryptoManagerPasswordHandler

public class CryptoWindow
extends Object
implements CryptoManagerPasswordHandler


Nested Class Summary
protected static class CryptoWindow.cryptoDialog
           
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.security.CryptoManagerPasswordHandler
CryptoManagerPasswordHandler.passwordDetails
 
Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.security.CryptoManagerPasswordHandler
ACTION_DECRYPT, ACTION_ENCRYPT, ACTION_PASSWORD_SET, HANDLER_TYPE_ALL, HANDLER_TYPE_SYSTEM, HANDLER_TYPE_UNKNOWN, HANDLER_TYPE_USER
 
Constructor Summary
CryptoWindow()
           
CryptoWindow(boolean stand_alone)
           
 
Method Summary
 int getHandlerType()
           
 CryptoManagerPasswordHandler.passwordDetails getPassword(int handler_type, int action_type, boolean last_pw_incorrect, String reason)
          Gets a password
 void passwordOK(int handler_type, CryptoManagerPasswordHandler.passwordDetails details)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoWindow

public CryptoWindow()

CryptoWindow

public CryptoWindow(boolean stand_alone)
Method Detail

getHandlerType

public int getHandlerType()
Specified by:
getHandlerType in interface CryptoManagerPasswordHandler

getPassword

public CryptoManagerPasswordHandler.passwordDetails getPassword(int handler_type,
                                                                int action_type,
                                                                boolean last_pw_incorrect,
                                                                String reason)
Description copied from interface: CryptoManagerPasswordHandler
Gets a password

Specified by:
getPassword in interface CryptoManagerPasswordHandler
Parameters:
handler_type - from AESecurityManager.HANDLER_x enum
action_type - from above ACTION_x enum
reason - reason for the password being sought
Returns:
password details or null if no password available

passwordOK

public void passwordOK(int handler_type,
                       CryptoManagerPasswordHandler.passwordDetails details)
Specified by:
passwordOK in interface CryptoManagerPasswordHandler