Class PrivateKeyInfoFactory


  • public class PrivateKeyInfoFactory
    extends java.lang.Object
    Factory to create ASN.1 private key info objects from lightweight private keys.
    • Method Detail

      • createPrivateKeyInfo

        public static PrivateKeyInfo createPrivateKeyInfo​(AsymmetricKeyParameter privateKey)
                                                   throws java.io.IOException
        Create a PrivateKeyInfo representation of a private key.
        Parameters:
        privateKey - the key to be encoded into the info object.
        Returns:
        the appropriate key parameter
        Throws:
        java.io.IOException - on an error encoding the key