Package org.bouncycastle.crypto.util
Class SubjectPublicKeyInfoFactory
java.lang.Object
org.bouncycastle.crypto.util.SubjectPublicKeyInfoFactory
Factory to create ASN.1 subject public key info objects from lightweight public keys.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubjectPublicKeyInfo
createSubjectPublicKeyInfo
(AsymmetricKeyParameter publicKey) Create a SubjectPublicKeyInfo public key.
-
Method Details
-
createSubjectPublicKeyInfo
public static SubjectPublicKeyInfo createSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey) throws IOException Create a SubjectPublicKeyInfo public key.- Parameters:
publicKey
- the key to be encoded into the info object.- Returns:
- a SubjectPublicKeyInfo representing the key.
- Throws:
IOException
- on an error encoding the key
-