Package com.nimbusds.jose
Class CompressionAlgorithm
java.lang.Object
com.nimbusds.jose.CompressionAlgorithm
- All Implemented Interfaces:
Serializable
Compression algorithm name, represents the
zip
header parameter in
JSON Web Encryption (JWE) objects. This class is immutable.
Includes a constant for the standard DEFLATE compression algorithm:
Additional compression algorithm names can be defined using the constructor.
- Version:
- 2024-04-20
- Author:
- Vladimir Dzhuvinov
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CompressionAlgorithm
DEFLATE Compressed Data Format Specification version 1.3, as described in RFC 1951. -
Constructor Summary
ConstructorsConstructorDescriptionCompressionAlgorithm
(String name) Creates a new compression algorithm with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
OverridesObject.equals()
.getName()
Gets the name of this compression algorithm.int
hashCode()
OverridesObject.hashCode()
.Returns the JSON string representation of this compression algorithm.toString()
Returns the string representation of this compression algorithm.
-
Field Details
-
DEF
DEFLATE Compressed Data Format Specification version 1.3, as described in RFC 1951.
-
-
Constructor Details
-
CompressionAlgorithm
Creates a new compression algorithm with the specified name.- Parameters:
name
- The compression algorithm name. Must not benull
.
-
-
Method Details
-
getName
Gets the name of this compression algorithm.- Returns:
- The compression algorithm name.
-
hashCode
OverridesObject.hashCode()
. -
equals
OverridesObject.equals()
. -
toString
Returns the string representation of this compression algorithm. -
toJSONString
Returns the JSON string representation of this compression algorithm.- Returns:
- The JSON string representation.
-