1package org.bouncycastle.jcajce.provider.asymmetric.util;
2
3import java.security.AlgorithmParameterGeneratorSpi;
4import java.security.AlgorithmParameters;
5import java.security.NoSuchAlgorithmException;
6import java.security.NoSuchProviderException;
7
8import org.bouncycastle.jcajce.util.BCJcaJceHelper;
9import org.bouncycastle.jcajce.util.JcaJceHelper;
10
11public abstract class BaseAlgorithmParameterGeneratorSpi
12    extends AlgorithmParameterGeneratorSpi
13{
14    private final JcaJceHelper helper = new BCJcaJceHelper();
15
16    public BaseAlgorithmParameterGeneratorSpi()
17    {
18    }
19
20    protected final AlgorithmParameters createParametersInstance(String algorithm)
21        throws NoSuchAlgorithmException, NoSuchProviderException
22    {
23        return helper.createAlgorithmParameters(algorithm);
24    }
25}
26