@Test(expected = RuntimeException.class) public void testClear() throws Exception { crypto.clear(); crypto.encrypt("something".getBytes()); }
public void clear() { Arrays.fill(secretKey, (byte) 0); Arrays.fill(digest, (byte) 0); secretKeys.clear(); initialized = false; }
Crypto { public void clear() { Arrays.fill(secretKey, (byte) 0); Arrays.fill(digest, (byte) 0); secretKeys.clear(); initialized = false; } }
Crypto { public void clear() { Arrays.fill(secretKey, (byte) 0); Arrays.fill(digest, (byte) 0); secretKeys.clear(); initialized = false; } Crypto(byte[] secretKey);  Crypto(Map<String, SecretKey> secretKeys);  Crypto(Map<String, SecretKey> secretKeys, char[] digest);  Crypto(String keystorePath, char[] keystorePass, String keyAlias, char[] keyPass); }
Crypto { public void clear() { Arrays.fill(secretKey, (byte) 0); Arrays.fill(digest, (byte) 0); secretKeys.clear(); initialized = false; } Crypto(byte[] secretKey);  Crypto(Map<String, SecretKey> secretKeys);  Crypto(Map<String, SecretKey> secretKeys, char[] digest);  Crypto(String keystorePath, char[] keystorePass, String keyAlias, char[] keyPass); byte[] getSHA1Digest(final byte[] key); byte[] getSHA1DigestOrEmpty(final byte[] bytes); String encrypt(byte[] bytesToEncrypt); String encrypt(String algorithm, byte[] bytesToEncrypt); byte[] decrypt(String strToDecrypt); void clear(); boolean verifyKey(byte[] candidateDigest); boolean verifyKey(char[] candidateDigest); static byte[] getBytes(char[] chars); static char[] getChars(byte[] bytes); static boolean isEncrypted(String value); static Map<String, SecretKey> getKeysFromKeyStore(String keystorePath, char[] keystorePass, String keyAlias,
            char[] keyPass); static void setKeyInKeyStore(String keystorePath, char[] keystorePass, String keyAlias, char[] keyPass,
            SecretKey key); }
Crypto { public void clear() { Arrays.fill(secretKey, (byte) 0); Arrays.fill(digest, (byte) 0); secretKeys.clear(); initialized = false; } Crypto(byte[] secretKey);  Crypto(Map<String, SecretKey> secretKeys);  Crypto(Map<String, SecretKey> secretKeys, char[] digest);  Crypto(String keystorePath, char[] keystorePass, String keyAlias, char[] keyPass); byte[] getSHA1Digest(final byte[] key); byte[] getSHA1DigestOrEmpty(final byte[] bytes); String encrypt(byte[] bytesToEncrypt); String encrypt(String algorithm, byte[] bytesToEncrypt); byte[] decrypt(String strToDecrypt); void clear(); boolean verifyKey(byte[] candidateDigest); boolean verifyKey(char[] candidateDigest); static byte[] getBytes(char[] chars); static char[] getChars(byte[] bytes); static boolean isEncrypted(String value); static Map<String, SecretKey> getKeysFromKeyStore(String keystorePath, char[] keystorePass, String keyAlias,
            char[] keyPass); static void setKeyInKeyStore(String keystorePath, char[] keystorePass, String keyAlias, char[] keyPass,
            SecretKey key); static final String AES; static final String AES_ECB_PKCS5PADDING; static final String DES; static final String DES_ECB_PKCS5PADDING; static final String[] IMPLEMENTED_ALGOS; static final String DEFAULT_ALGO; }