private async Task <Tuple <string, string> > GetRSAKeysFromStorage(string id)
        {
            var publicKey = await _keyStorageContainer.ReadPublickKeyAsStringAsync(id);

            var publicPrvateKey = await _keyStorageContainer.ReadPrivateKeyAsStringAsync(id);

            return(Tuple.Create(publicKey, publicPrvateKey));
        }
Esempio n. 2
0
 /// <summary>
 /// Gets the public key for the given id
 /// </summary>
 /// <param name="id">The key owner id</param>
 /// <returns>The key as string</returns>
 public async Task <string> GetClientPublicRSAKeysAsync(string id)
 {
     return(await _keyStorageContainer.ReadPublickKeyAsStringAsync(id));
 }