com.aelitis.azureus.core.security
Interface CryptoManagerPasswordHandler

All Known Implementing Classes:
CryptoWindow

public interface CryptoManagerPasswordHandler


Nested Class Summary
static interface CryptoManagerPasswordHandler.passwordDetails
           
 
Field Summary
static int ACTION_DECRYPT
           
static int ACTION_ENCRYPT
           
static int ACTION_PASSWORD_SET
           
static int HANDLER_TYPE_ALL
           
static int HANDLER_TYPE_SYSTEM
           
static int HANDLER_TYPE_UNKNOWN
          HANDLER_TYPE_UNKNOWN is not for public use
static int HANDLER_TYPE_USER
           
 
Method Summary
 int getHandlerType()
           
 CryptoManagerPasswordHandler.passwordDetails getPassword(int handler_type, int action_type, boolean last_pw_incorrect, java.lang.String reason)
          Gets a password
 void passwordOK(int handler_type, CryptoManagerPasswordHandler.passwordDetails details)
           
 

Field Detail

HANDLER_TYPE_UNKNOWN

static final int HANDLER_TYPE_UNKNOWN
HANDLER_TYPE_UNKNOWN is not for public use

See Also:
Constant Field Values

HANDLER_TYPE_USER

static final int HANDLER_TYPE_USER
See Also:
Constant Field Values

HANDLER_TYPE_SYSTEM

static final int HANDLER_TYPE_SYSTEM
See Also:
Constant Field Values

HANDLER_TYPE_ALL

static final int HANDLER_TYPE_ALL
See Also:
Constant Field Values

ACTION_ENCRYPT

static final int ACTION_ENCRYPT
See Also:
Constant Field Values

ACTION_DECRYPT

static final int ACTION_DECRYPT
See Also:
Constant Field Values

ACTION_PASSWORD_SET

static final int ACTION_PASSWORD_SET
See Also:
Constant Field Values
Method Detail

getHandlerType

int getHandlerType()

getPassword

CryptoManagerPasswordHandler.passwordDetails getPassword(int handler_type,
                                                         int action_type,
                                                         boolean last_pw_incorrect,
                                                         java.lang.String reason)
Gets a password

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

void passwordOK(int handler_type,
                CryptoManagerPasswordHandler.passwordDetails details)