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
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@1454
    11
@interface PEPPassphraseCache ()
dz@1454
    12
dz@1454
    13
@end
dz@1454
    14
dz@1449
    15
@implementation PEPPassphraseCache
dz@1449
    16
dz@1449
    17
/// Internal constructor (for now).
dz@1449
    18
- (instancetype)initTimeout:(NSUInteger)timeout
dz@1449
    19
{
dz@1449
    20
    self = [super init];
dz@1449
    21
    if (self) {
dz@1449
    22
        _timeout = timeout;
dz@1449
    23
    }
dz@1449
    24
    return self;
dz@1449
    25
}
dz@1449
    26
dz@1449
    27
/// Public constructor with default values.
dz@1449
    28
- (instancetype)init
dz@1449
    29
{
dz@1449
    30
    return [self initTimeout:10 * 60];
dz@1449
    31
}
dz@1449
    32
dz@1449
    33
- (void)addPassphrase:(NSString *)passphrase
dz@1449
    34
{
dz@1449
    35
}
dz@1449
    36
dz@1449
    37
- (NSArray *)passphrases
dz@1449
    38
{
dz@1449
    39
    return @[];
dz@1449
    40
}
dz@1449
    41
dz@1449
    42
@end