|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.jose.CompressionAlgorithm
@Immutable public final class CompressionAlgorithm
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.
Field Summary | |
---|---|
static CompressionAlgorithm |
DEF
DEFLATE Compressed Data Format Specification version 1.3, as described in RFC 1951. |
Constructor Summary | |
---|---|
CompressionAlgorithm(String name)
Creates a new compression algorithm with the specified name. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CompressionAlgorithm DEF
Constructor Detail |
---|
public CompressionAlgorithm(String name)
name
- The compression algorithm name. Must not be null
.Method Detail |
---|
public String getName()
public int hashCode()
Object.hashCode()
.
hashCode
in class Object
public boolean equals(Object object)
Object.equals()
.
equals
in class Object
object
- The object to compare to.
true
if the objects have the same value, otherwise
false
.public String toString()
toString
in class Object
getName()
public String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |