public class PrivateKeyFactory extends 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(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 IOException
privateKeyInfoData - the PrivateKeyInfo encodingIOException - on an error decoding the keypublic static AsymmetricKeyParameter createKey(InputStream inStr) throws IOException
inStr - the stream to read the PrivateKeyInfo encoding fromIOException - on an error decoding the keypublic static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo) throws IOException
keyInfo - the PrivateKeyInfo object containing the key materialIOException - on an error decoding the keyCopyright © 2015. All rights reserved.