mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Following the pattern that singleton methods for effectively global state should get/set on their own dedicated dbConnection for consistency and to avoid being blocked by unrelated writes.
30 lines
571 B
Objective-C
30 lines
571 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSStorageManager.h"
|
|
|
|
@interface TSStorageManager (keyingMaterial)
|
|
|
|
#pragma mark Server Credentials
|
|
|
|
/**
|
|
* The server signaling key that's used to encrypt push payloads
|
|
*
|
|
* @return signaling key
|
|
*/
|
|
|
|
+ (NSString *)signalingKey;
|
|
|
|
/**
|
|
* The server auth token allows the TextSecure client to connect to the server
|
|
*
|
|
* @return server authentication token
|
|
*/
|
|
|
|
+ (NSString *)serverAuthToken;
|
|
|
|
+ (void)storeServerToken:(NSString *)authToken signalingKey:(NSString *)signalingKey;
|
|
|
|
@end
|