pEpObjCAdapter/PEPPassphraseCache.m
branchIOSAD-172
changeset 1474 a37a548a6b3b
parent 1473 066dcbeeb6a0
child 1475 cf82c13266ac
     1.1 --- a/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPPassphraseCache.m	Fri Jun 26 16:54:34 2020 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  
     1.5  static NSUInteger s_maxNumberOfPassphrases = 20;
     1.6  static NSTimeInterval s_defaultTimeoutInSeconds = 10 * 60;
     1.7 -static NSTimeInterval s_defaultRemoveStalePassphrasesInterval = 60;
     1.8 +static NSTimeInterval s_defaultCheckExpiryInterval = 60;
     1.9  
    1.10  @interface PEPPassphraseCache ()
    1.11  
    1.12 @@ -26,8 +26,8 @@
    1.13  @implementation PEPPassphraseCache
    1.14  
    1.15  /// Internal constructor (for now).
    1.16 -- (instancetype)initWithTimeout:(NSTimeInterval)timeout
    1.17 - removeStalePassphrasesInterval:(NSTimeInterval)removeStalePassphrasesInterval
    1.18 +- (instancetype)initWithPassphraseTimeout:(NSTimeInterval)timeout
    1.19 +                      checkExpiryInterval:(NSTimeInterval)checkExpiryInterval
    1.20  {
    1.21      self = [super init];
    1.22      if (self) {
    1.23 @@ -41,9 +41,8 @@
    1.24  /// Public constructor with default values.
    1.25  - (instancetype)init
    1.26  {
    1.27 -    return [self
    1.28 -            initWithTimeout:s_defaultTimeoutInSeconds
    1.29 -            removeStalePassphrasesInterval:s_defaultRemoveStalePassphrasesInterval];
    1.30 +    return [self initWithPassphraseTimeout:s_defaultTimeoutInSeconds
    1.31 +                       checkExpiryInterval:s_defaultCheckExpiryInterval];
    1.32  }
    1.33  
    1.34  - (void)addPassphrase:(NSString *)passphrase