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(java.security.Provider provider)
Sets a specific JCA provider for the content encryption.
|
void |
setKeyEncryptionProvider(java.security.Provider provider)
Sets a specific JCA provider for the key encryption.
|
void |
setMACProvider(java.security.Provider provider)
Sets a specific JCA provider for MAC computation (where required by
the JWE encryption method).
|
void |
setSecureRandom(java.security.SecureRandom randomGen)
Sets a specific secure random generator for the initialisation
vector and other purposes requiring a random number.
|
java.util.Set<JWEAlgorithm> |
supportedAlgorithms()
Returns the names of the supported JWE algorithms.
|
java.util.Set<EncryptionMethod> |
supportedEncryptionMethods()
Returns the names of the supported encryption methods.
|
setProviderjava.util.Set<JWEAlgorithm> supportedAlgorithms()
alg JWE header parameter.java.util.Set<EncryptionMethod> supportedEncryptionMethods()
enc JWE header parameter.void setKeyEncryptionProvider(java.security.Provider provider)
provider - The JCA provider, or null to use the default
one.void setContentEncryptionProvider(java.security.Provider provider)
provider - The JCA provider, or null to use the default
one.void setMACProvider(java.security.Provider provider)
provider - The JCA provider, or null to use the default
one.void setSecureRandom(java.security.SecureRandom randomGen)
randomGen - The secure random generator, or null to use
the default one.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.