public class PublicKeyFactory
extends java.lang.Object
| Constructor and Description | 
|---|
PublicKeyFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
static AsymmetricKeyParameter | 
createKey(SubjectPublicKeyInfo keyInfo,
         java.lang.Object defaultParams)
Create a public key from the passed in SubjectPublicKeyInfo 
 | 
public static AsymmetricKeyParameter createKey(byte[] keyInfoData) throws java.io.IOException
keyInfoData - the SubjectPublicKeyInfo encodingjava.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 SubjectPublicKeyInfo encoding fromjava.io.IOException - on an error decoding the keypublic static AsymmetricKeyParameter createKey(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
keyInfo - the SubjectPublicKeyInfo containing the key datajava.io.IOException - on an error decoding the keypublic static AsymmetricKeyParameter createKey(SubjectPublicKeyInfo keyInfo, java.lang.Object defaultParams) throws java.io.IOException
keyInfo - the SubjectPublicKeyInfo containing the key datadefaultParams - default parameters that might be needed.java.io.IOException - on an error decoding the key