public class PublicKeyFactory
extends java.lang.Object
| Constructor and Description |
|---|
PublicKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.crypto.params.AsymmetricKeyParameter |
createKey(byte[] keyInfoData)
Create a public key from a SubjectPublicKeyInfo encoding
|
static org.bouncycastle.crypto.params.AsymmetricKeyParameter |
createKey(SubjectPublicKeyInfo keyInfo)
Create a public key from the passed in SubjectPublicKeyInfo
|
public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(byte[] keyInfoData)
throws java.io.IOException
keyInfoData - the SubjectPublicKeyInfo encodingjava.io.IOException - on an error decoding the keypublic static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
keyInfo - the SubjectPublicKeyInfo containing the key datajava.io.IOException - on an error decoding the key