pEpObjCAdapter/PEPPassphraseCache.m
author Dirk Zimmermann <dz@pep.security>
Thu, 25 Jun 2020 17:08:21 +0200
branchIOSAD-172
changeset 1454 45299c4176f1
parent 1449 bf378dcc639a
child 1456 752e8d0380a1
permissions -rw-r--r--
IOSAD-172 Prepare for internal properties
     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 @interface PEPPassphraseCache ()
    12 
    13 @end
    14 
    15 @implementation PEPPassphraseCache
    16 
    17 /// Internal constructor (for now).
    18 - (instancetype)initTimeout:(NSUInteger)timeout
    19 {
    20     self = [super init];
    21     if (self) {
    22         _timeout = timeout;
    23     }
    24     return self;
    25 }
    26 
    27 /// Public constructor with default values.
    28 - (instancetype)init
    29 {
    30     return [self initTimeout:10 * 60];
    31 }
    32 
    33 - (void)addPassphrase:(NSString *)passphrase
    34 {
    35 }
    36 
    37 - (NSArray *)passphrases
    38 {
    39     return @[];
    40 }
    41 
    42 @end