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 Deprecated 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)java.security.cert.CertPathBuildercreateCertPathBuilder(java.lang.String algorithm)java.security.cert.CertPathValidatorcreateCertPathValidator(java.lang.String algorithm)java.security.cert.CertStorecreateCertStore(java.lang.String type, java.security.cert.CertStoreParameters params)javax.crypto.CiphercreateCipher(java.lang.String algorithm)java.security.MessageDigestcreateDigest(java.lang.String algorithm)Deprecated.Use createMessageDigest insteadjavax.crypto.ExemptionMechanismcreateExemptionMechanism(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)java.security.KeyStorecreateKeyStore(java.lang.String type)javax.crypto.MaccreateMac(java.lang.String algorithm)java.security.MessageDigestcreateMessageDigest(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.NoSuchAlgorithmExceptionDeprecated.Use createMessageDigest instead- Specified by:
createDigestin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createMessageDigest
public java.security.MessageDigest createMessageDigest(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createMessageDigestin 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
-
createCertPathBuilder
public java.security.cert.CertPathBuilder createCertPathBuilder(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createCertPathBuilderin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createCertPathValidator
public java.security.cert.CertPathValidator createCertPathValidator(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createCertPathValidatorin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createCertStore
public java.security.cert.CertStore createCertStore(java.lang.String type, java.security.cert.CertStoreParameters params) throws java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException- Specified by:
createCertStorein interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.InvalidAlgorithmParameterException
-
createExemptionMechanism
public javax.crypto.ExemptionMechanism createExemptionMechanism(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException- Specified by:
createExemptionMechanismin interfaceJcaJceHelper- Throws:
java.security.NoSuchAlgorithmException
-
createKeyStore
public java.security.KeyStore createKeyStore(java.lang.String type) throws java.security.KeyStoreException- Specified by:
createKeyStorein interfaceJcaJceHelper- Throws:
java.security.KeyStoreException
-
-