예제 #1
0
        public void StoreKey(string bucket, string handle, CryptoKey key)
        {
            var keyRow = new SymmetricCryptoKey() {
                Bucket = bucket,
                Handle = handle,
                Secret = key.Key,
                ExpiresUtc = key.ExpiresUtc,
            };

            MvcApplication.DataContext.SymmetricCryptoKeys.InsertOnSubmit(keyRow);
            MvcApplication.DataContext.SubmitChanges();
        }
예제 #2
0
 partial void DeleteSymmetricCryptoKey(SymmetricCryptoKey instance);
예제 #3
0
 partial void UpdateSymmetricCryptoKey(SymmetricCryptoKey instance);
예제 #4
0
 partial void InsertSymmetricCryptoKey(SymmetricCryptoKey instance);