/** * Clears the in-memory representation of the string. */ public void dispose() { SecurityUtil.clear(encryptedBytes); disposed = true; }
/** * Clears the in-memory representation of the byte array. */ public void dispose() { SecurityUtil.clear(encryptedBytes); disposed = true; }
/** * Clears the in-memory representation of the string. */ public void dispose() { SecurityUtil.clear(encryptedBytes); disposed = true; }
/** * Clears the in-memory representation of the byte array. */ public void dispose() { SecurityUtil.clear(encryptedBytes); disposed = true; }
/** * Clears the in-memory representation of the string. */ public void dispose() { SecurityUtil.clear(_encryptedBytes); _disposed = true; }
/** * Clears the in-memory representation of the byte array. */ public void dispose() { SecurityUtil.clear(_encryptedBytes); _disposed = true; }
private char[] decryptChars() { byte[] clearBytes = null; try { clearBytes = decryptBytes(); return SecurityUtil.bytesToChars(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
private char [] decryptChars() { byte [] clearBytes = null; try { clearBytes = decryptBytes(); return SecurityUtil.bytesToChars(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
private void encryptChars(char[] chars) { byte[] clearBytes = null; try { clearBytes = SecurityUtil.charsToBytes(chars); encryptBytes(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
private void encryptChars(char [] chars) { byte [] clearBytes = null; try { clearBytes = SecurityUtil.charsToBytes(chars); encryptBytes(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
private char[] decryptChars() { byte[] clearBytes = null; try { clearBytes = decryptBytes(); return SecurityUtil.bytesToChars(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
private void encryptChars(char[] chars) { byte[] clearBytes = null; try { clearBytes = SecurityUtil.charsToBytes(chars); encryptBytes(clearBytes); } finally { SecurityUtil.clear(clearBytes); } }
@Override public Object deserialize(final ObjectDecoder decoder) { byte[] encryptedBytes = null; byte[] clearBytes = null; try { encryptedBytes = decoder.readByteArrayContents(); clearBytes = EncryptorFactory.getInstance().getDefaultEncryptor().decrypt(encryptedBytes); return new GuardedByteArray(clearBytes); } finally { SecurityUtil.clear(encryptedBytes); SecurityUtil.clear(clearBytes); } }
@Override public Object deserialize(final ObjectDecoder decoder) { byte[] encryptedBytes = null; byte[] clearBytes = null; try { encryptedBytes = decoder.readByteArrayContents(); clearBytes = EncryptorFactory.getInstance().getDefaultEncryptor().decrypt(encryptedBytes); return new GuardedByteArray(clearBytes); } finally { SecurityUtil.clear(encryptedBytes); SecurityUtil.clear(clearBytes); } }
private void encryptBytes(byte[] bytes) { Encryptor encryptor = getEncryptor(); byte[] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(encryptedBytes); encryptedBytes = newBytes; base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }
private void encryptBytes(byte[] bytes) { Encryptor encryptor = getEncryptor(); byte[] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(encryptedBytes); encryptedBytes = newBytes; base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }
private void encryptBytes(byte[] bytes) { Encryptor encryptor = getEncryptor(); byte[] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(encryptedBytes); encryptedBytes = newBytes; base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }
private void encryptBytes(byte[] bytes) { Encryptor encryptor = getEncryptor(); byte[] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(encryptedBytes); encryptedBytes = newBytes; base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }
private void encryptBytes(byte [] bytes) { Encryptor encryptor = getEncryptor(); byte [] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(_encryptedBytes); _encryptedBytes = newBytes; _base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }
private void encryptBytes(byte [] bytes) { Encryptor encryptor = getEncryptor(); byte [] newBytes = encryptor.encrypt(bytes); SecurityUtil.clear(_encryptedBytes); _encryptedBytes = newBytes; _base64SHA1Hash = SecurityUtil.computeBase64SHA1Hash(bytes); }