org.bouncycastle.crypto.util

Class PrivateKeyFactory


public class PrivateKeyFactory
extends java.lang.Object

Factory for creating private key objects from PKCS8 PrivateKeyInfo objects.

Method Summary

static AsymmetricKeyParameter
createKey(PrivateKeyInfo keyInfo)
Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.

Method Details

createKey

public static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo)
            throws IOException
Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.
Parameters:
keyInfo - the PrivateKeyInfo object containing the key material
Returns:
a suitable private key parameter