-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #878 from Microsoft/develop
Release 1.1.0
- Loading branch information
Showing
107 changed files
with
2,326 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
AppCenter/AppCenter/Internals/Util/MSKeychainUtilPrivate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
|
||
#import "MSKeychainUtil.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* Keychain service name suffix. | ||
*/ | ||
static NSString *const kMSServiceSuffix = @"AppCenter"; | ||
|
||
/** | ||
* Utility class for Keychain. | ||
*/ | ||
@interface MSKeychainUtil () | ||
|
||
/** | ||
* Store a string to Keychain with the given key. | ||
* | ||
* @param string A string data to be placed in Keychain. | ||
* @param key A unique key for the data. | ||
* @param serviceName Keychain service name. | ||
* | ||
* @return YES if stored successfully, NO otherwise. | ||
*/ | ||
+ (BOOL)storeString:(NSString *)string forKey:(NSString *)key withServiceName:(NSString *)serviceName; | ||
|
||
/** | ||
* Delete a string from Keychain with the given key. | ||
* | ||
* @param key A unique key for the data. | ||
* @param serviceName Keychain service name. | ||
* | ||
* @return A string data that was deleted. | ||
*/ | ||
+ (NSString *_Nullable)deleteStringForKey:(NSString *)key withServiceName:(NSString *)serviceName; | ||
|
||
/** | ||
* Get a string from Keychain with the given key. | ||
* | ||
* @param key A unique key for the data. | ||
* @param serviceName Keychain service name. | ||
* | ||
* @return A string data if exists. | ||
*/ | ||
+ (NSString *_Nullable)stringForKey:(NSString *)key withServiceName:(NSString *)serviceName; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.