// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.eac.jcajce;

import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.KeyFactory;

class NamedEACHelper implements EACHelper
{
    private final String providerName;
    
    NamedEACHelper(final String providerName) {
        this.providerName = providerName;
    }
    
    @Override
    public KeyFactory createKeyFactory(final String algorithm) throws NoSuchProviderException, NoSuchAlgorithmException {
        return KeyFactory.getInstance(algorithm, this.providerName);
    }
}
