Package org.bouncycastle.jcajce.util
Class DefaultJcaJceHelper
- java.lang.Object
-
- org.bouncycastle.jcajce.util.DefaultJcaJceHelper
-
- All Implemented Interfaces:
JcaJceHelper
public class DefaultJcaJceHelper extends java.lang.Object implements JcaJceHelper
JcaJceHelperthat obtains all algorithms using the default JCA/JCE mechanism (i.e. without specifying a provider).
-
-
Constructor Summary
Constructors Constructor Description DefaultJcaJceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.AlgorithmParameterGeneratorcreateAlgorithmParameterGenerator(java.lang.String algorithm)java.security.AlgorithmParameterscreateAlgorithmParameters(java.lang.String algorithm)java.security.cert.CertificateFactorycreateCertificateFactory(java.lang.String algorithm)javax.crypto.CiphercreateCipher(java.lang.String algorithm)java.security.MessageDigestcreateDigest(java.lang.String algorithm)javax.crypto.KeyAgreementcreateKeyAgreement(java.lang.String algorithm)java.security.KeyFactorycreateKeyFactory(java.lang.String algorithm)javax.crypto.KeyGeneratorcreateKeyGenerator(java.lang.String algorithm)java.security.KeyPairGeneratorcreateKeyPairGenerator(java.lang.String algorithm)javax.crypto.MaccreateMac(java.lang.String algorithm)javax.crypto.SecretKeyFactorycreateSecretKeyFactory(java.lang.String algorithm)java.security.SecureRandomcreateSecureRandom(java.lang.String algorithm)java.security.SignaturecreateSignature(java.lang.String algorithm)
-
-
-
Method Detail
-
createCipher
public javax.crypto.Cipher createCipher(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException- Specified by:
createCipherin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingException
-
createMac
public javax.crypto.Mac createMac(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createMacin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createKeyAgreement
public javax.crypto.KeyAgreement createKeyAgreement(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createKeyAgreementin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createAlgorithmParameterGenerator
public java.security.AlgorithmParameterGenerator createAlgorithmParameterGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createAlgorithmParameterGeneratorin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createAlgorithmParameters
public java.security.AlgorithmParameters createAlgorithmParameters(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createAlgorithmParametersin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createKeyGenerator
public javax.crypto.KeyGenerator createKeyGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createKeyGeneratorin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createKeyFactory
public java.security.KeyFactory createKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createKeyFactoryin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createSecretKeyFactory
public javax.crypto.SecretKeyFactory createSecretKeyFactory(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createSecretKeyFactoryin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createKeyPairGenerator
public java.security.KeyPairGenerator createKeyPairGenerator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createKeyPairGeneratorin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createDigest
public java.security.MessageDigest createDigest(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createDigestin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createSignature
public java.security.Signature createSignature(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createSignaturein interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createCertificateFactory
public java.security.cert.CertificateFactory createCertificateFactory(java.lang.String algorithm) throws java.security.cert.CertificateException- Specified by:
createCertificateFactoryin interfaceJcaJceHelper- Throws:
java.security.cert.CertificateException
-
createSecureRandom
public java.security.SecureRandom createSecureRandom(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createSecureRandomin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
-