* compression algorithm is not supported.
*/
public static byte[] applyDecompression(final ReadOnlyJWEHeader readOnlyJWEHeader, final byte[] bytes)
throws JOSEException {
CompressionAlgorithm compressionAlg = readOnlyJWEHeader.getCompressionAlgorithm();
if (compressionAlg == null) {
return bytes;
} else if (compressionAlg.equals(CompressionAlgorithm.DEF)) {
try {
return DeflateUtils.decompress(bytes);
} catch (Exception e) {