Package org.bouncycastle.jcajce.util
Class NamedJcaJceHelper
java.lang.Object
org.bouncycastle.jcajce.util.NamedJcaJceHelper
- All Implemented Interfaces:
JcaJceHelper
JcaJceHelper that obtains all algorithms using a specific named provider.-
Field Summary
Fields -
Constructor Summary
Constructors -
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)
-
Field Details
-
providerName
-
-
Constructor Details
-
NamedJcaJceHelper
-
-
Method Details
-
createCipher
public Cipher createCipher(String algorithm) throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException - Specified by:
createCipherin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchPaddingExceptionNoSuchProviderException
-
createMac
- Specified by:
createMacin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createKeyAgreement
public KeyAgreement createKeyAgreement(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createKeyAgreementin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createAlgorithmParameterGenerator
public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createAlgorithmParameterGeneratorin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createAlgorithmParameters
public AlgorithmParameters createAlgorithmParameters(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createAlgorithmParametersin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createKeyGenerator
public KeyGenerator createKeyGenerator(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createKeyGeneratorin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createKeyFactory
public KeyFactory createKeyFactory(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createKeyFactoryin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createSecretKeyFactory
public SecretKeyFactory createSecretKeyFactory(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createSecretKeyFactoryin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createKeyPairGenerator
public KeyPairGenerator createKeyPairGenerator(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createKeyPairGeneratorin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createDigest
public MessageDigest createDigest(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException Deprecated.Use createMessageDigest instead- Specified by:
createDigestin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createMessageDigest
public MessageDigest createMessageDigest(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createMessageDigestin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createSignature
public Signature createSignature(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createSignaturein interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createCertificateFactory
public CertificateFactory createCertificateFactory(String algorithm) throws CertificateException, NoSuchProviderException - Specified by:
createCertificateFactoryin interfaceJcaJceHelper- Throws:
CertificateExceptionNoSuchProviderException
-
createSecureRandom
public SecureRandom createSecureRandom(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createSecureRandomin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createCertPathBuilder
public CertPathBuilder createCertPathBuilder(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createCertPathBuilderin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createCertPathValidator
public CertPathValidator createCertPathValidator(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createCertPathValidatorin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createCertStore
public CertStore createCertStore(String type, CertStoreParameters params) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, NoSuchProviderException - Specified by:
createCertStorein interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionInvalidAlgorithmParameterExceptionNoSuchProviderException
-
createExemptionMechanism
public ExemptionMechanism createExemptionMechanism(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException - Specified by:
createExemptionMechanismin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionNoSuchProviderException
-
createKeyStore
- Specified by:
createKeyStorein interfaceJcaJceHelper- Throws:
KeyStoreExceptionNoSuchProviderException
-