org.testifyproject.bouncycastle.eac.jcajce.ProviderEACHelper Maven / Gradle / Ivy
package org.testifyproject.bouncycastle.eac.jcajce;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.Provider;
class ProviderEACHelper
implements EACHelper
{
private final Provider provider;
ProviderEACHelper(Provider provider)
{
this.provider = provider;
}
public KeyFactory createKeyFactory(String type)
throws NoSuchAlgorithmException
{
return KeyFactory.getInstance(type, provider);
}
}