public interface JWEAlgorithmProvider extends AlgorithmProvider
encrypters
and decrypters
.
Callers can query the JWE provider to determine its algorithm capabilities.
Modifier and Type | Method and Description |
---|---|
void |
setContentEncryptionProvider(Provider provider)
Sets a specific JCA provider for the content encryption.
|
void |
setKeyEncryptionProvider(Provider provider)
Sets a specific JCA provider for the key encryption.
|
void |
setMACProvider(Provider provider)
Sets a specific JCA provider for MAC computation (where required by
the JWE encryption method).
|
void |
setSecureRandom(SecureRandom randomGen)
Sets a specific secure random generator for the initialisation
vector and other purposes requiring a random number.
|
Set<JWEAlgorithm> |
supportedAlgorithms()
Returns the names of the supported JWE algorithms.
|
Set<EncryptionMethod> |
supportedEncryptionMethods()
Returns the names of the supported encryption methods.
|
setProvider
Set<JWEAlgorithm> supportedAlgorithms()
alg
JWE header parameter.Set<EncryptionMethod> supportedEncryptionMethods()
enc
JWE header parameter.void setKeyEncryptionProvider(Provider provider)
provider
- The JCA provider, or null
to use the default
one.void setContentEncryptionProvider(Provider provider)
provider
- The JCA provider, or null
to use the default
one.void setMACProvider(Provider provider)
provider
- The JCA provider, or null
to use the default
one.void setSecureRandom(SecureRandom randomGen)
randomGen
- The secure random generator, or null
to use
the default one.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.