JcaJceHelper.java revision e1142c149e244797ce73b0e7fad40816e447a817
1package org.bouncycastle.jcajce;
2
3import java.security.AlgorithmParameterGenerator;
4import java.security.AlgorithmParameters;
5import java.security.KeyFactory;
6import java.security.KeyPairGenerator;
7import java.security.MessageDigest;
8import java.security.NoSuchAlgorithmException;
9import java.security.NoSuchProviderException;
10import java.security.Signature;
11import java.security.cert.CertificateException;
12import java.security.cert.CertificateFactory;
13
14import javax.crypto.Cipher;
15import javax.crypto.KeyAgreement;
16import javax.crypto.KeyGenerator;
17import javax.crypto.Mac;
18import javax.crypto.NoSuchPaddingException;
19import javax.crypto.SecretKeyFactory;
20
21public interface JcaJceHelper
22{
23    Cipher createCipher(
24        String algorithm)
25        throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException;
26
27    Mac createMac(String algorithm)
28        throws NoSuchAlgorithmException, NoSuchProviderException;
29
30    KeyAgreement createKeyAgreement(String algorithm)
31        throws NoSuchAlgorithmException, NoSuchProviderException;
32
33    AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm)
34        throws NoSuchAlgorithmException, NoSuchProviderException;
35
36    AlgorithmParameters createAlgorithmParameters(String algorithm)
37        throws NoSuchAlgorithmException, NoSuchProviderException;
38
39    KeyGenerator createKeyGenerator(String algorithm)
40        throws NoSuchAlgorithmException, NoSuchProviderException;
41
42    KeyFactory createKeyFactory(String algorithm)
43        throws NoSuchAlgorithmException, NoSuchProviderException;
44
45    SecretKeyFactory createSecretKeyFactory(String algorithm)
46           throws NoSuchAlgorithmException, NoSuchProviderException;
47
48    KeyPairGenerator createKeyPairGenerator(String algorithm)
49        throws NoSuchAlgorithmException, NoSuchProviderException;
50
51    MessageDigest createDigest(String algorithm)
52        throws NoSuchAlgorithmException, NoSuchProviderException;
53
54    Signature createSignature(String algorithm)
55        throws NoSuchAlgorithmException, NoSuchProviderException;
56
57    CertificateFactory createCertificateFactory(String algorithm)
58        throws NoSuchAlgorithmException, NoSuchProviderException, CertificateException;
59}
60