summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-31 23:07:20 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-31 23:07:20 +0200
commit22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch)
tree5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h
parentd22d51a1ae49680015326857360eb699f31efced (diff)
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h')
-rw-r--r--StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h b/StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h
new file mode 100644
index 00000000..b4d5d062
--- /dev/null
+++ b/StoneIsland/platforms/ios/Pods/GTMAppAuth/Source/GTMKeychain.h
@@ -0,0 +1,62 @@
+/*! @file GTMKeychain.h
+ @brief GTMAppAuth SDK
+ @copyright
+ Copyright 2016 Google Inc.
+ @copydetails
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*! @brief Utility for saving and loading data to the keychain.
+ */
+@interface GTMKeychain : NSObject
+
+/*! @brief Saves the password string to the keychain with the given identifier.
+ @param keychainItemName Keychain name of the item.
+ @param password Password string to save.
+ @return YES when the password string was saved successfully.
+ */
++ (BOOL)savePasswordToKeychainForName:(NSString *)keychainItemName password:(NSString *)password;
+
+/*! @brief Loads the password string from the keychain with the given identifier.
+ @param keychainItemName Keychain name of the item.
+ @return The password string at the given identifier, or nil.
+ */
++ (nullable NSString *)passwordFromKeychainForName:(NSString *)keychainItemName;
+
+/*! @brief Saves the password data to the keychain with the given identifier.
+ @param keychainItemName Keychain name of the item.
+ @param passwordData Password data to save.
+ @return YES when the password data was saved successfully.
+ */
++ (BOOL)savePasswordDataToKeychainForName:(NSString *)keychainItemName
+ passwordData:(NSData *)passwordData;
+
+/*! @brief Loads the password data from the keychain with the given identifier.
+ @param keychainItemName Keychain name of the item.
+ @return The password data at the given identifier, or nil.
+ */
++ (nullable NSData *)passwordDataFromKeychainForName:(NSString *)keychainItemName;
+
+/*! @brief Removes stored password string, such as when the user signs out.
+ @param keychainItemName Keychain name of the item.
+ @return YES if the password string was removed successfully (or didn't exist).
+ */
++ (BOOL)removePasswordFromKeychainForName:(NSString *)keychainItemName;
+
+@end
+
+NS_ASSUME_NONNULL_END