Bouncy Castle Cryptography 1.32

org.bouncycastle.crypto.util
Class PrivateKeyFactory

java.lang.Object
  extended by org.bouncycastle.crypto.util.PrivateKeyFactory

public class PrivateKeyFactory
extends java.lang.Object

Factory for creating private key objects from PKCS8 PrivateKeyInfo objects.


Constructor Summary
PrivateKeyFactory()
           
 
Method Summary
static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo)
          Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivateKeyFactory

public PrivateKeyFactory()
Method Detail

createKey

public static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo)
                                        throws java.io.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
Throws:
java.io.IOException - on an error decoding the key

Bouncy Castle Cryptography 1.32