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
dz@1449
     1
//
dz@1449
     2
//  PEPPassphraseCache.m
dz@1449
     3
//  pEpObjCAdapter
dz@1449
     4
//
dz@1449
     5
//  Created by Dirk Zimmermann on 25.06.20.
dz@1449
     6
//  Copyright © 2020 p≡p. All rights reserved.
dz@1449
     7
//
dz@1449
     8
dz@1449
     9
#import "PEPPassphraseCache.h"
dz@1449
    10
dz@1449
    11
@implementation PEPPassphraseCache
dz@1449
    12
dz@1449
    13
/// Internal constructor (for now).
dz@1449
    14
- (instancetype)initTimeout:(NSUInteger)timeout
dz@1449
    15
{
dz@1449
    16
    self = [super init];
dz@1449
    17
    if (self) {
dz@1449
    18
        _timeout = timeout;
dz@1449
    19
    }
dz@1449
    20
    return self;
dz@1449
    21
}
dz@1449
    22
dz@1449
    23
/// Public constructor with default values.
dz@1449
    24
- (instancetype)init
dz@1449
    25
{
dz@1449
    26
    return [self initTimeout:10 * 60];
dz@1449
    27
}
dz@1449
    28
dz@1449
    29
- (void)addPassphrase:(NSString *)passphrase
dz@1449
    30
{
dz@1449
    31
}
dz@1449
    32
dz@1449
    33
- (NSArray *)passphrases
dz@1449
    34
{
dz@1449
    35
    return @[];
dz@1449
    36
}
dz@1449
    37
dz@1449
    38
@end