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(SubjectPublicKeyInfo keyInfo)
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(SubjectPublicKeyInfo keyInfo) throws IOException
keyInfo
- the SubjectPublicKeyInfo containing the key dataIOException
- on an error decoding the keyCopyright © 2015. All rights reserved.