1234567891011121314151617181920212223242526272829303132 |
- /**
- * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
- #import <Foundation/Foundation.h>
- #import "UICKeyChainStore.h"
- NS_ASSUME_NONNULL_BEGIN
- extern NSString * const kNCNormalPushTokenKey;
- extern NSString * const kNCPushKitTokenKey;
- @interface NCKeyChainController : NSObject
- @property (nonatomic, copy) UICKeyChainStore *keychain;
- + (instancetype)sharedInstance;
- - (void)setToken:(NSString *)token forAccountId:(NSString *)accountId;
- - (NSString *)tokenForAccountId:(NSString *)accountId;
- - (void)setPushNotificationPublicKey:(NSData *)privateKey forAccountId:(NSString *)accountId;
- - (NSData *)pushNotificationPublicKeyForAccountId:(NSString *)accountId;
- - (void)setPushNotificationPrivateKey:(NSData *)privateKey forAccountId:(NSString *)accountId;
- - (NSData *)pushNotificationPrivateKeyForAccountId:(NSString *)accountId;
- - (NSString *)pushTokenSHA512;
- - (void)logCombinedPushToken;
- - (NSString *)combinedPushToken;
- - (void)removeAllItems;
- @end
- NS_ASSUME_NONNULL_END
|