public class PrivateKeyFactory
extends java.lang.Object
Constructor and Description |
---|
PrivateKeyFactory() |
Modifier and Type | Method and Description |
---|---|
static AsymmetricKeyParameter |
createKey(byte[] privateKeyInfoData)
Create a private key parameter from a PKCS8 PrivateKeyInfo encoding.
|
static AsymmetricKeyParameter |
createKey(java.io.InputStream inStr)
Create a private key parameter from a PKCS8 PrivateKeyInfo encoding read from a
stream.
|
static AsymmetricKeyParameter |
createKey(PrivateKeyInfo keyInfo)
Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.
|
public static AsymmetricKeyParameter createKey(byte[] privateKeyInfoData) throws java.io.IOException
privateKeyInfoData
- the PrivateKeyInfo encodingjava.io.IOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(java.io.InputStream inStr) throws java.io.IOException
inStr
- the stream to read the PrivateKeyInfo encoding fromjava.io.IOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo) throws java.io.IOException
keyInfo
- the PrivateKeyInfo object containing the key materialjava.io.IOException
- on an error decoding the key