Package org.bouncycastle.jcajce
Class NamedJcaJceHelper
java.lang.Object
org.bouncycastle.jcajce.NamedJcaJceHelper
- All Implemented Interfaces:
JcaJceHelper
public class NamedJcaJceHelper extends Object implements JcaJceHelper
-
Field Summary
Fields Modifier and Type Field Description protected StringproviderName -
Constructor Summary
Constructors Constructor Description NamedJcaJceHelper(String providerName) -
Method Summary
Modifier and Type Method Description AlgorithmParameterGeneratorcreateAlgorithmParameterGenerator(String algorithm)AlgorithmParameterscreateAlgorithmParameters(String algorithm)CertificateFactorycreateCertificateFactory(String algorithm)CiphercreateCipher(String algorithm)MessageDigestcreateDigest(String algorithm)KeyAgreementcreateKeyAgreement(String algorithm)KeyFactorycreateKeyFactory(String algorithm)KeyGeneratorcreateKeyGenerator(String algorithm)KeyPairGeneratorcreateKeyPairGenerator(String algorithm)MaccreateMac(String algorithm)SecretKeyFactorycreateSecretKeyFactory(String algorithm)SignaturecreateSignature(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- Specified by:
createDigestin 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 NoSuchAlgorithmException, CertificateException, NoSuchProviderException- Specified by:
createCertificateFactoryin interfaceJcaJceHelper- Throws:
NoSuchAlgorithmExceptionCertificateExceptionNoSuchProviderException
-