org.bouncycastle.crypto.util

Class PublicKeyFactory


public class PublicKeyFactory
extends java.lang.Object

Factory to create asymmetric public key parameters for asymmetric ciphers from range of ASN.1 encoded SubjectPublicKeyInfo objects.

Method Summary

static AsymmetricKeyParameter
createKey(SubjectPublicKeyInfo keyInfo)
Create a public key from the passed in SubjectPublicKeyInfo

Method Details

createKey

public static AsymmetricKeyParameter createKey(SubjectPublicKeyInfo keyInfo)
            throws IOException
Create a public key from the passed in SubjectPublicKeyInfo
Parameters:
keyInfo - the SubjectPublicKeyInfo containing the key data
Returns:
the appropriate key parameter