Package | Description |
---|---|
org.forgerock.json.jose.builders |
Classes and interfaces for builder to build JWTs using a fluent API.
|
org.forgerock.json.jose.jwe |
Classes and interfaces for JWT encryption and JWEs.
|
org.forgerock.json.jose.jws |
Classes and interfaces for JWT signing and JWS'.
|
Modifier and Type | Method and Description |
---|---|
B |
JwtSecureHeaderBuilder.zip(CompressionAlgorithm zip)
Sets the Compression Algorithm header parameter for this JWE.
|
JweHeaderBuilder<B> |
JweHeaderBuilder.zip(CompressionAlgorithm zip) |
Modifier and Type | Method and Description |
---|---|
static CompressionAlgorithm |
CompressionAlgorithm.parseAlgorithm(String algorithm)
Parses the given algorithm string to find the matching CompressionAlgorithm enum constant.
|
static CompressionAlgorithm |
CompressionAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionAlgorithm[] |
CompressionAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
CompressionManager.compress(CompressionAlgorithm compressionAlgorithm,
String data)
Convenience method equivalent to
Base64url.encode(getCompressionHandler(compressionAlgorithm).compress(data.getBytes(Utils.CHARSET))) . |
byte[] |
CompressionManager.decompress(CompressionAlgorithm compressionAlgorithm,
String data)
Convenience method equivalent to
getCompressionHandler(compressionAlgorithm).decompress(Base64url.decode(data)) . |
CompressionHandler |
CompressionManager.getCompressionHandler(CompressionAlgorithm algorithm)
Gets the appropriate CompressionHandler that can perform the required compression using the given
compression algorithm.
|
Modifier and Type | Method and Description |
---|---|
CompressionAlgorithm |
JwtSecureHeader.getCompressionAlgorithm()
Gets the Compression Algorithm header parameter for this JWE.
|
Modifier and Type | Method and Description |
---|---|
void |
JwtSecureHeader.setCompressionAlgorithm(CompressionAlgorithm compressionAlgorithm)
Sets the Compression Algorithm header parameter for this JWE.
|
Copyright 2010-2022 ForgeRock AS.