Class SubjectPublicKeyInfoFactory


  • public class SubjectPublicKeyInfoFactory
    extends java.lang.Object
    Factory to create ASN.1 subject public key info objects from lightweight public keys.
    • 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