public static interface JWE.Builder
Modifier and Type | Method and Description |
---|---|
JWE |
build()
Creates a JSON Web Encryption operator using the configuration of this
builder.
|
JWE.Builder |
compressionAlgorithm(JWE.CompressionAlgorithm algorithm)
Sets the compression algorithm.
|
JWE.Builder |
contentEncryptionAlgorithm(JWE.ContentEncryptionAlgorithm algorithm)
Sets the content encryption algorithm.
|
JWE.Builder |
contentType(String type)
Sets the value for the
cty header value. |
JWE.Builder |
keyManagementAlgorithm(JWE.KeyManagementAlgorithm algorithm)
Sets the key management algorithm.
|
JWE.Builder |
keyProvider(KeyProvider keyProvider)
Sets the key provider to use to obtain keys for encryption or decryption
operations.
|
JWE.Builder keyProvider(KeyProvider keyProvider)
keyProvider
- key providerJWE.Builder keyManagementAlgorithm(JWE.KeyManagementAlgorithm algorithm)
algorithm
- selected algorithmJWE.Builder contentEncryptionAlgorithm(JWE.ContentEncryptionAlgorithm algorithm)
algorithm
- selected algorithmJWE.Builder compressionAlgorithm(JWE.CompressionAlgorithm algorithm)
algorithm
- selected algorithmJWE.Builder contentType(String type)
cty
header value.type
- payload type; use for JWT payloads.JWE build() throws JWTConfigurationException
JWTConfigurationException
- if an error occurs in creating the
encryption operatorCopyright © 2019. All rights reserved.