FileDocCategorySizeDatePackage
CryptoHandler.javaAPI DocAzureus 3.0.3.43196Tue Jun 20 03:09:06 BST 2006com.aelitis.azureus.core.security

CryptoHandler

public interface CryptoHandler

Fields Summary
Constructors Summary
Methods Summary
public voidchangePassword(char[] old_password, char[] new_password)

public byte[]decrypt(byte[] other_public_key, byte[] data, char[] password)

public byte[]decrypt(byte[] other_public_key, byte[] data, java.lang.String reason)

public byte[]encrypt(byte[] other_public_key, byte[] data, java.lang.String reason)

public byte[]encrypt(byte[] other_public_key, byte[] data, char[] password)

public byte[]getEncryptedPrivateKey(char[] password)

public byte[]getEncryptedPrivateKey(java.lang.String reason)

public byte[]getPublicKey(char[] password)

public byte[]getPublicKey(java.lang.String reason)

public CryptoSTSEnginegetSTSEngine(char[] password)

public CryptoSTSEnginegetSTSEngine(java.lang.String reason)

public intgetUnlockTimeoutSeconds()

public voidlock()
Puts the handler back into a state where password will be required to access private stuff

public voidrecoverKeys(byte[] public_key, byte[] encrypted_private_key)

public voidresetKeys(char[] password)

public voidsetUnlockTimeoutSeconds(int secs)

param
secs 0-> infinite

public byte[]sign(byte[] data, java.lang.String reason)

public byte[]sign(byte[] data, char[] password)

public voidunlock(char[] password)
Explicit unlock request

param
password
throws
CryptoManagerException

public booleanverify(byte[] public_key, byte[] data, byte[] signature)