|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.crypto.util.PrivateKeyFactory
public class PrivateKeyFactory
Factory for creating private key objects from PKCS8 PrivateKeyInfo objects.
Constructor Summary | |
---|---|
PrivateKeyFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivateKeyFactory()
Method Detail |
---|
public static AsymmetricKeyParameter createKey(byte[] privateKeyInfoData) throws java.io.IOException
privateKeyInfoData
- the PrivateKeyInfo encoding
java.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 from
java.io.IOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(PrivateKeyInfo keyInfo) throws java.io.IOException
keyInfo
- the PrivateKeyInfo object containing the key material
java.io.IOException
- on an error decoding the key
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |