1 package org.bouncycastle.jcajce.provider.util; 2 3 import java.io.IOException; 4 import java.security.PrivateKey; 5 import java.security.PublicKey; 6 7 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; 8 import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; 9 10 public interface AsymmetricKeyInfoConverter 11 { generatePrivate(PrivateKeyInfo keyInfo)12 PrivateKey generatePrivate(PrivateKeyInfo keyInfo) 13 throws IOException; 14 generatePublic(SubjectPublicKeyInfo keyInfo)15 PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) 16 throws IOException; 17 } 18