public static bool RequestAuthentication(string message) { if (!UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { return(false); } return(KeychainUtils.RetrieveKeychain(message) != null); }
public static bool SetupTouchIdAuthentication() { if (!UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { return(false); } if (!KeychainUtils.StoreKeychain()) { return(KeychainUtils.UpdateKeychain() == Security.SecStatusCode.Success); } return(true); }