Class NOPCompressionHandler
- java.lang.Object
-
- org.forgerock.json.jose.jwe.handlers.compression.NOPCompressionHandler
-
- All Implemented Interfaces:
CompressionHandler
public class NOPCompressionHandler extends Object implements CompressionHandler
A NOP implementation of the Compression Handler, which will be used when no compression is to be applied.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description NOPCompressionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
compress(byte[] bytes)
Simple returns the same byte array as it is given.byte[]
decompress(byte[] bytes)
Simply returns the same byte array as it is given.
-
-
-
Method Detail
-
compress
public byte[] compress(byte[] bytes)
Simple returns the same byte array as it is given.- Specified by:
compress
in interfaceCompressionHandler
- Parameters:
bytes
- The array of bytes to compress.- Returns:
- The compressed representation of the byte array.
-
decompress
public byte[] decompress(byte[] bytes)
Simply returns the same byte array as it is given.- Specified by:
decompress
in interfaceCompressionHandler
- Parameters:
bytes
- The array of bytes to decompress.- Returns:
- The decompressed representation of the byte array.
-
-