public class PublicKeyFactory extends 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(InputStream inStr)
Create a public key from a SubjectPublicKeyInfo encoding read from a stream
|
static AsymmetricKeyParameter |
createKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo)
Create a public key from the passed in SubjectPublicKeyInfo
|
static AsymmetricKeyParameter |
createKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo,
Object defaultParams)
Create a public key from the passed in SubjectPublicKeyInfo
|
public static AsymmetricKeyParameter createKey(byte[] keyInfoData) throws IOException
keyInfoData
- the SubjectPublicKeyInfo encodingIOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(InputStream inStr) throws IOException
inStr
- the stream to read the SubjectPublicKeyInfo encoding fromIOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo) throws IOException
keyInfo
- the SubjectPublicKeyInfo containing the key dataIOException
- on an error decoding the keypublic static AsymmetricKeyParameter createKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo, Object defaultParams) throws IOException
keyInfo
- the SubjectPublicKeyInfo containing the key datadefaultParams
- default parameters that might be needed.IOException
- on an error decoding the key