com.aelitis.azureus.core.security.impl
Class CryptoManagerImpl
java.lang.Object
com.aelitis.azureus.core.security.impl.CryptoManagerImpl
- All Implemented Interfaces:
- CryptoManager
public class CryptoManagerImpl
- extends java.lang.Object
- implements CryptoManager
Method Summary |
void |
addKeyListener(CryptoManagerKeyListener listener)
|
void |
addPasswordHandler(CryptoManagerPasswordHandler handler)
|
protected void |
addPasswordTimer(java.lang.String timeout_key,
java.lang.String pw_key,
long timeout)
|
protected void |
clearPassword(int handler,
int password_handler_type)
|
void |
clearPasswords()
|
void |
clearPasswords(int password_handler_type)
|
protected byte[] |
decryptWithPBE(byte[] data,
char[] password)
|
byte[] |
deobfuscate(byte[] data)
|
protected byte[] |
encryptWithPBE(byte[] data,
char[] password)
|
CryptoHandler |
getECCHandler()
|
protected CryptoManagerImpl.passwordDetails |
getPassword(int handler,
int action,
java.lang.String reason,
CryptoManagerImpl.passwordTester tester,
int pw_type)
|
protected byte[] |
getPasswordSalt()
|
byte[] |
getSecureID()
|
static CryptoManager |
getSingleton()
|
CryptoManager.SRPParameters |
getSRPParameters()
|
protected void |
keyChanged(CryptoHandler handler)
|
protected void |
lockChanged(CryptoHandler handler)
|
static void |
main(java.lang.String[] args)
|
byte[] |
obfuscate(byte[] data)
|
void |
removeKeyListener(CryptoManagerKeyListener listener)
|
void |
removePasswordHandler(CryptoManagerPasswordHandler handler)
|
protected CryptoManagerImpl.passwordDetails |
setPassword(int handler,
int pw_type,
char[] pw_chars,
long timeout)
|
protected void |
setSecureID(byte[] id)
|
void |
setSRPParameters(byte[] salt,
java.math.BigInteger verifier)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoManagerImpl
protected CryptoManagerImpl()
getSingleton
public static CryptoManager getSingleton()
addPasswordTimer
protected void addPasswordTimer(java.lang.String timeout_key,
java.lang.String pw_key,
long timeout)
getSecureID
public byte[] getSecureID()
- Specified by:
getSecureID
in interface CryptoManager
obfuscate
public byte[] obfuscate(byte[] data)
- Specified by:
obfuscate
in interface CryptoManager
deobfuscate
public byte[] deobfuscate(byte[] data)
- Specified by:
deobfuscate
in interface CryptoManager
getECCHandler
public CryptoHandler getECCHandler()
- Specified by:
getECCHandler
in interface CryptoManager
encryptWithPBE
protected byte[] encryptWithPBE(byte[] data,
char[] password)
throws CryptoManagerException
- Throws:
CryptoManagerException
decryptWithPBE
protected byte[] decryptWithPBE(byte[] data,
char[] password)
throws CryptoManagerException
- Throws:
CryptoManagerException
clearPasswords
public void clearPasswords()
- Specified by:
clearPasswords
in interface CryptoManager
clearPasswords
public void clearPasswords(int password_handler_type)
- Specified by:
clearPasswords
in interface CryptoManager
clearPassword
protected void clearPassword(int handler,
int password_handler_type)
setPassword
protected CryptoManagerImpl.passwordDetails setPassword(int handler,
int pw_type,
char[] pw_chars,
long timeout)
throws CryptoManagerException
- Throws:
CryptoManagerException
getPassword
protected CryptoManagerImpl.passwordDetails getPassword(int handler,
int action,
java.lang.String reason,
CryptoManagerImpl.passwordTester tester,
int pw_type)
throws CryptoManagerException
- Throws:
CryptoManagerException
getPasswordSalt
protected byte[] getPasswordSalt()
setSecureID
protected void setSecureID(byte[] id)
keyChanged
protected void keyChanged(CryptoHandler handler)
lockChanged
protected void lockChanged(CryptoHandler handler)
addPasswordHandler
public void addPasswordHandler(CryptoManagerPasswordHandler handler)
- Specified by:
addPasswordHandler
in interface CryptoManager
removePasswordHandler
public void removePasswordHandler(CryptoManagerPasswordHandler handler)
- Specified by:
removePasswordHandler
in interface CryptoManager
addKeyListener
public void addKeyListener(CryptoManagerKeyListener listener)
- Specified by:
addKeyListener
in interface CryptoManager
removeKeyListener
public void removeKeyListener(CryptoManagerKeyListener listener)
- Specified by:
removeKeyListener
in interface CryptoManager
setSRPParameters
public void setSRPParameters(byte[] salt,
java.math.BigInteger verifier)
- Specified by:
setSRPParameters
in interface CryptoManager
getSRPParameters
public CryptoManager.SRPParameters getSRPParameters()
- Specified by:
getSRPParameters
in interface CryptoManager
main
public static void main(java.lang.String[] args)