private JweDecryption decryption;
private JweCryptoProperties cryptoProperties;
private String defaultMediaType;
protected JweDecryptionOutput decrypt(InputStream is) throws IOException {
JweDecryption theDecryptor = getInitializedDecryption();
JweDecryptionOutput out = theDecryptor.decrypt(new String(IOUtils.readBytesFromStream(is), "UTF-8"));
validateHeaders(out.getHeaders());
return out;
}
protected void validateHeaders(JweHeaders headers) {