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