Package org.bouncycastle.jcajce.util
Class DefaultJcaJceHelper
java.lang.Object
org.bouncycastle.jcajce.util.DefaultJcaJceHelper
- All Implemented Interfaces:
JcaJceHelper
JcaJceHelper
that obtains all algorithms using the default JCA/JCE mechanism (i.e.
without specifying a provider).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateAlgorithmParameterGenerator
(String algorithm) createAlgorithmParameters
(String algorithm) createCertificateFactory
(String algorithm) createCertPathBuilder
(String algorithm) createCertPathValidator
(String algorithm) createCertStore
(String type, CertStoreParameters params) createCipher
(String algorithm) createDigest
(String algorithm) Deprecated.Use createMessageDigest insteadcreateExemptionMechanism
(String algorithm) createKeyAgreement
(String algorithm) createKeyFactory
(String algorithm) createKeyGenerator
(String algorithm) createKeyPairGenerator
(String algorithm) createKeyStore
(String type) createMessageDigest
(String algorithm) createSecretKeyFactory
(String algorithm) createSecureRandom
(String algorithm) createSignature
(String algorithm)
-
Constructor Details
-
DefaultJcaJceHelper
public DefaultJcaJceHelper()
-
-
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
Deprecated.Use createMessageDigest instead- Specified by:
createDigest
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createMessageDigest
- Specified by:
createMessageDigest
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createSignature
- Specified by:
createSignature
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createCertificateFactory
- Specified by:
createCertificateFactory
in interfaceJcaJceHelper
- Throws:
CertificateException
-
createSecureRandom
- Specified by:
createSecureRandom
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createCertPathBuilder
- Specified by:
createCertPathBuilder
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createCertPathValidator
- Specified by:
createCertPathValidator
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createCertStore
public CertStore createCertStore(String type, CertStoreParameters params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException - Specified by:
createCertStore
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
-
createExemptionMechanism
public ExemptionMechanism createExemptionMechanism(String algorithm) throws NoSuchAlgorithmException - Specified by:
createExemptionMechanism
in interfaceJcaJceHelper
- Throws:
NoSuchAlgorithmException
-
createKeyStore
- Specified by:
createKeyStore
in interfaceJcaJceHelper
- Throws:
KeyStoreException
-