IOSAD-134 PEPIdentity.disableKeySync. IOSAD-134
authorDirk Zimmermann <dz@pep.security>
Mon, 02 Sep 2019 16:47:25 +0200
branchIOSAD-134
changeset 1194390f7f29e063
parent 1193 735a6a9aa4ce
child 1195 9914dab31795
IOSAD-134 PEPIdentity.disableKeySync.
pEpObjCAdapter/PEPIdentity.m
pEpObjCAdapterFramework/PEPIdentity.h
     1.1 --- a/pEpObjCAdapter/PEPIdentity.m	Mon Sep 02 16:47:25 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPIdentity.m	Mon Sep 02 16:47:25 2019 +0200
     1.3 @@ -206,6 +206,12 @@
     1.4      return [session enableSyncForIdentity:self error:error];
     1.5  }
     1.6  
     1.7 +- (BOOL)disableKeySyncError:(NSError * _Nullable * _Nullable)error
     1.8 +{
     1.9 +    PEPSession *session = [PEPSession new];
    1.10 +    return [session disableSyncForIdentity:self error:error];
    1.11 +}
    1.12 +
    1.13  // MARK: - NSDictionary - Helpers
    1.14  
    1.15  - (NSArray<NSArray<NSString *> *> *)keyValuePairs
     2.1 --- a/pEpObjCAdapterFramework/PEPIdentity.h	Mon Sep 02 16:47:25 2019 +0200
     2.2 +++ b/pEpObjCAdapterFramework/PEPIdentity.h	Mon Sep 02 16:47:25 2019 +0200
     2.3 @@ -115,4 +115,14 @@
     2.4   */
     2.5  - (BOOL)enableKeySyncError:(NSError * _Nullable * _Nullable)error;
     2.6  
     2.7 +/**
     2.8 + Disables key sync on this identity.
     2.9 +
    2.10 + Will invoke the needed methods on an own session.
    2.11 +
    2.12 + @param error The usual cocoa error handling.
    2.13 + @return The usual cocoa error handling.
    2.14 + */
    2.15 +- (BOOL)disableKeySyncError:(NSError * _Nullable * _Nullable)error;
    2.16 +
    2.17  @end