Package org.bouncycastle.jcajce.util
Class ProviderJcaJceHelper
java.lang.Object
org.bouncycastle.jcajce.util.ProviderJcaJceHelper
- All Implemented Interfaces:
JcaJceHelper
JcaJceHelper that always returns implementations based on the specified provider at construction time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAlgorithmParameterGenerator
(String algorithm) createAlgorithmParameters
(String algorithm) createCertificateFactory
(String algorithm) createCipher
(String algorithm) createDigest
(String algorithm) createKeyAgreement
(String algorithm) createKeyFactory
(String algorithm) createKeyGenerator
(String algorithm) createKeyPairGenerator
(String algorithm) createSecretKeyFactory
(String algorithm) createSecureRandom
(String algorithm) createSignature
(String algorithm)
-
Field Details
-
provider
-
-
Constructor Details
-
ProviderJcaJceHelper
Base constructor.- Parameters:
provider
- the provider to use to find implementations of JCA/JCE functions.
-
-
Method Details
-
createCipher
public Cipher createCipher(String algorithm) throws NoSuchAlgorithmException, NoSuchPaddingException - Specified by:
createCipher
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
NoSuchPaddingException
-
createMac
- Specified by:
createMac
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createKeyAgreement
- Specified by:
createKeyAgreement
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createAlgorithmParameterGenerator
public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) throws NoSuchAlgorithmException - Specified by:
createAlgorithmParameterGenerator
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createAlgorithmParameters
public AlgorithmParameters createAlgorithmParameters(String algorithm) throws NoSuchAlgorithmException - Specified by:
createAlgorithmParameters
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createKeyGenerator
- Specified by:
createKeyGenerator
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createKeyFactory
- Specified by:
createKeyFactory
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createSecretKeyFactory
- Specified by:
createSecretKeyFactory
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createKeyPairGenerator
- Specified by:
createKeyPairGenerator
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createDigest
- Specified by:
createDigest
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createSignature
- Specified by:
createSignature
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createCertificateFactory
- Specified by:
createCertificateFactory
in interfaceJcaJceHelper
- Throws:
CertificateException
-
createSecureRandom
public SecureRandom createSecureRandom(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createSecureRandom
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
-