Class NOPCompressionHandler
java.lang.Object
org.forgerock.json.jose.jwe.handlers.compression.NOPCompressionHandler
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
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.
-
Constructor Details
-
NOPCompressionHandler
public NOPCompressionHandler()
-
-
Method Details
-
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.
-