org.bouncycastle.crypto.util
public class PublicKeyFactory extends Object
Method Summary | |
---|---|
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
|
Parameters: keyInfoData the SubjectPublicKeyInfo encoding
Returns: the appropriate key parameter
Throws: IOException on an error decoding the key
Parameters: inStr the stream to read the SubjectPublicKeyInfo encoding from
Returns: the appropriate key parameter
Throws: IOException on an error decoding the key
Parameters: keyInfo the SubjectPublicKeyInfo containing the key data
Returns: the appropriate key parameter
Throws: IOException on an error decoding the key