pEpObjCAdapter/PEPPassphraseCache.m
author Dirk Zimmermann <dz@pep.security>
Thu, 25 Jun 2020 17:08:21 +0200
branchIOSAD-172
changeset 1449 bf378dcc639a
child 1454 45299c4176f1
permissions -rw-r--r--
IOSAD-172 Rename files to reflect passphrase naming
     1 //
     2 //  PEPPassphraseCache.m
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 25.06.20.
     6 //  Copyright © 2020 p≡p. All rights reserved.
     7 //
     8 
     9 #import "PEPPassphraseCache.h"
    10 
    11 @implementation PEPPassphraseCache
    12 
    13 /// Internal constructor (for now).
    14 - (instancetype)initTimeout:(NSUInteger)timeout
    15 {
    16     self = [super init];
    17     if (self) {
    18         _timeout = timeout;
    19     }
    20     return self;
    21 }
    22 
    23 /// Public constructor with default values.
    24 - (instancetype)init
    25 {
    26     return [self initTimeout:10 * 60];
    27 }
    28 
    29 - (void)addPassphrase:(NSString *)passphrase
    30 {
    31 }
    32 
    33 - (NSArray *)passphrases
    34 {
    35     return @[];
    36 }
    37 
    38 @end