aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cert/jcajce/CertHelper.java
blob: 1c5679bf321fd5561a28b3beb2a5e89b2ef6d130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.spongycastle.cert.jcajce;

import java.security.NoSuchProviderException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;

abstract class CertHelper
{
    public CertificateFactory getCertificateFactory(String type)
        throws NoSuchProviderException, CertificateException
    {
        return createCertificateFactory(type);
    }

    protected abstract CertificateFactory createCertificateFactory(String type)
        throws CertificateException, NoSuchProviderException;
}