@Override
public InputStream getInputStream() throws IOException {
final CipherInputStream cipherIn = new CipherInputStream(super.getInputStream(), this.decrypt);
try {
return new HmacInputStream(cipherIn, this.keyExchange.getSharedKey(AES_ALGORITHM_NAME));
} catch (Exception e) {
logger.error("Could not create hmac input stream.", e); //$NON-NLS-1$
throw new IOException(e);
}
}