Package com.biglybt.core.security
Interface CryptoManagerPasswordHandler
-
- All Known Implementing Classes:
CryptoWindow
public interface CryptoManagerPasswordHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CryptoManagerPasswordHandler.passwordDetails
-
Field Summary
Fields Modifier and Type Field Description 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 usestatic int
HANDLER_TYPE_USER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHandlerType()
CryptoManagerPasswordHandler.passwordDetails
getPassword(int handler_type, int action_type, boolean last_pw_incorrect, java.lang.String reason)
Gets a passwordvoid
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 enumaction_type
- from above ACTION_x enumreason
- reason for the password being sought- Returns:
- password details or null if no password available
-
passwordOK
void passwordOK(int handler_type, CryptoManagerPasswordHandler.passwordDetails details)
-
-