Exemplo n.º 1
0
        public static bool RequestAuthentication(string message)
        {
            if (!UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                return(false);
            }

            return(KeychainUtils.RetrieveKeychain(message) != null);
        }
Exemplo n.º 2
0
        public static bool SetupTouchIdAuthentication()
        {
            if (!UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                return(false);
            }

            if (!KeychainUtils.StoreKeychain())
            {
                return(KeychainUtils.UpdateKeychain() == Security.SecStatusCode.Success);
            }

            return(true);
        }