public class PrivateKeyInfoFactory extends Object
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
createPrivateKeyInfo(AsymmetricKeyParameter privateKey)
Create a PrivateKeyInfo representation of a private key.
|
public static org.bouncycastle.asn1.pkcs.PrivateKeyInfo createPrivateKeyInfo(AsymmetricKeyParameter privateKey) throws IOException
privateKey
- the key to be encoded into the info object.IOException
- on an error encoding the key