コード例 #1
0
        public static bool RequestAuthentication(string message)
        {
            if (!UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                return(false);
            }

            return(KeychainUtils.RetrieveKeychain(message) != null);
        }
コード例 #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);
        }