RecordNullCipher extends RecordCipher { @Override public void decrypt(Record record) throws CryptoException { LOGGER.debug("Decrypting Record: (null cipher)"); record.prepareComputations(); byte[] protocolMessageBytes = record.getProtocolMessageBytes().getValue(); record.setCleanProtocolMessageBytes(protocolMessageBytes); } RecordNullCipher(TlsContext context); @Override void encrypt(Record record); @Override void decrypt(Record record); @Override void encrypt(BlobRecord br); @Override void decrypt(BlobRecord br);  }
@Test public void testDecrypt() throws CryptoException { record.setProtocolMessageBytes(data); recordCipher.decrypt(record); assertArrayEquals(data, record.getCleanProtocolMessageBytes().getValue()); }