@Immutable public final class CompressionAlgorithm extends Object implements net.minidev.json.JSONAware, Serializable
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.
Modifier and Type | Field and Description |
---|---|
static CompressionAlgorithm |
DEF
DEFLATE Compressed Data Format Specification version 1.3, as
described in RFC 1951.
|
Constructor and Description |
---|
CompressionAlgorithm(String name)
Creates a new compression algorithm with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Overrides
Object.equals() . |
String |
getName()
Gets the name of this compression algorithm.
|
int |
hashCode()
Overrides
Object.hashCode() . |
String |
toJSONString()
Returns the JSON string representation of this compression algorithm.
|
String |
toString()
Returns the string representation of this compression algorithm.
|
public static final CompressionAlgorithm DEF
public CompressionAlgorithm(String name)
name
- The compression algorithm name. Must not be null
.public String getName()
public int hashCode()
Object.hashCode()
.public boolean equals(Object object)
Object.equals()
.public String toString()
public String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
Copyright © 2019 Connect2id Ltd.. All rights reserved.