示例#1
0
 /// <summary>
 /// Imports key (public, private or both) from the specified file to the Key Store.
 /// </summary>
 /// <param name="keyFilePath">Path to file containing the key to import. Usually as .asc file.</param>
 /// <returns>Array of PFPKeyInformation objects. Null if no keys found in the Key Store.</returns>
 public PGPKeyInformation[] ImportKey(string keyFilePath)
 {
     KeyPairInformation[] kpi = _keyStore.ImportKeyRing(keyFilePath);
     GetKeyList();
     return(ConvertKeyPairInformationArray(kpi));
 }