Exemplo n.º 1
0
        public static Task SetAsync(string key, string value, SecAccessible accessible)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            var kc = new KeyChain(accessible);

            kc.SetValueForKey(value, key, Alias);

            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
        static void PlatformRemoveAll()
        {
            var kc = new KeyChain(DefaultAccessible);

            kc.RemoveAll(Alias);
        }
Exemplo n.º 3
0
        static bool PlatformRemove(string key)
        {
            var kc = new KeyChain(DefaultAccessible);

            return(kc.Remove(key, Alias));
        }