Browse Source

IOSAD-172 Password entry has isExpired

IOSAD-172
Dirk Zimmermann 2 years ago
parent
commit
1db3d35af9
2 changed files with 11 additions and 0 deletions
  1. +4
    -0
      pEpObjCAdapter/PEPPassphraseCacheEntry.h
  2. +7
    -0
      pEpObjCAdapter/PEPPassphraseCacheEntry.m

+ 4
- 0
pEpObjCAdapter/PEPPassphraseCacheEntry.h View File

@ -19,6 +19,10 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithPassphrase:(NSString *)passphrase;
/// @Return `YES` when the entry has expired (has passed the compiled-in timeout),
/// `NO` otherwise.
- (BOOL)isExpired;
@end
NS_ASSUME_NONNULL_END

+ 7
- 0
pEpObjCAdapter/PEPPassphraseCacheEntry.m View File

@ -8,6 +8,8 @@
#import "PEPPassphraseCacheEntry.h"
static NSTimeInterval s_defaultTimeoutInSeconds = 10 * 60;
@implementation PEPPassphraseCacheEntry
- (instancetype)initWithPassphrase:(NSString *)passphrase
@ -20,4 +22,9 @@
return self;
}
- (BOOL)isExpired
{
return NO;
}
@end

Loading…
Cancel
Save