洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

8 months ago
  1. //
  2. // APSecStore.h
  3. // APPSecuritySDK
  4. //
  5. // Created by eric on 2021/3/10.
  6. // Copyright © 2021 Alipay. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface APSecStore : NSObject
  11. /*
  12. *: keychain中载入字符串
  13. *线:
  14. *:
  15. *@return: key对应字符串,nil
  16. *@param key:nil
  17. *@param error:
  18. */
  19. +(NSString*) loadKey:(NSString*) key error:(NSError **)error;
  20. /*
  21. *: ()keychain
  22. *线:
  23. *:
  24. *@return: yes,no
  25. *@param key:nil
  26. *@param value:nil
  27. *@param error:
  28. */
  29. +(BOOL) saveKey:(NSString*) key Value:(NSString*)value error:(NSError **)error;
  30. /*
  31. *: keychain中删除字符串
  32. *线:
  33. *:
  34. *@return: yes,no
  35. *@param key:nil
  36. *@param error:
  37. */
  38. +(BOOL) deleteKey:(NSString*) key error:(NSError **)error;
  39. @end
  40. NS_ASSUME_NONNULL_END