Ejemplo n.º 1
0
		public override void Save (Account account, string serviceId)
		{
			var alias = MakeAlias (account, serviceId);

			var secretKey = new SecretAccount (account);
			var entry = new KeyStore.SecretKeyEntry (secretKey);
			ks.SetEntry (alias, entry, prot);

			lock (fileLock) {
				using (var s = context.OpenFileOutput (FileName, FileCreationMode.Private)) {
					ks.Store (s, Password);
				}
			}
		}
Ejemplo n.º 2
0
		public override void Save (ISalesforceUser account, string serviceId)
		{
			var alias = MakeAlias (account, serviceId);

			var secretKey = new SecretAccount (account);
			var entry = new KeyStore.SecretKeyEntry (secretKey);
			ks.SetEntry (alias, entry, prot);

			this.Save();
		}