|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.util.PublicKeyFactory
public class PublicKeyFactory
Factory to create asymmetric public key parameters for asymmetric ciphers from range of ASN.1 encoded SubjectPublicKeyInfo objects.
| Constructor Summary | |
|---|---|
PublicKeyFactory()
|
|
| Method Summary | |
|---|---|
static AsymmetricKeyParameter |
createKey(byte[] keyInfoData)
Create a public key from a SubjectPublicKeyInfo encoding |
static AsymmetricKeyParameter |
createKey(java.io.InputStream inStr)
Create a public key from a SubjectPublicKeyInfo encoding read from a stream |
static AsymmetricKeyParameter |
createKey(SubjectPublicKeyInfo keyInfo)
Create a public key from the passed in SubjectPublicKeyInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublicKeyFactory()
| Method Detail |
|---|
public static AsymmetricKeyParameter createKey(byte[] keyInfoData)
throws java.io.IOException
keyInfoData - the SubjectPublicKeyInfo encoding
java.io.IOException - on an error decoding the key
public static AsymmetricKeyParameter createKey(java.io.InputStream inStr)
throws java.io.IOException
inStr - the stream to read the SubjectPublicKeyInfo encoding from
java.io.IOException - on an error decoding the key
public static AsymmetricKeyParameter createKey(SubjectPublicKeyInfo keyInfo)
throws java.io.IOException
keyInfo - the SubjectPublicKeyInfo containing the key data
java.io.IOException - on an error decoding the key
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||