-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathDatabaseAuditorConfiguration.h
51 lines (36 loc) · 1.32 KB
/
DatabaseAuditorConfiguration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// DatabaseAuditorConfiguration.h
// Strongbox
//
// Created by Mark on 17/04/2020.
// Copyright © 2014-2021 Mark McGuill. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface DatabaseAuditorConfiguration : NSObject
+ (instancetype)defaults;
+ (instancetype)fromJsonSerializationDictionary:(NSDictionary*)jsonDictionary;
- (NSDictionary *)getJsonSerializationDictionary;
@property BOOL auditInBackground;
@property BOOL checkForNoPasswords;
@property BOOL checkForTwoFactorAvailable;
@property BOOL checkForDuplicatedPasswords;
@property BOOL caseInsensitiveMatchForDuplicates;
@property BOOL checkForCommonPasswords;
@property BOOL checkForLowEntropy;
@property NSUInteger lowEntropyThreshold;
@property BOOL checkForSimilarPasswords;
@property double levenshteinSimilarityThreshold;
@property BOOL checkForMinimumLength;
@property NSUInteger minimumLength;
@property BOOL checkHibp;
@property (nullable) NSNumber* lastKnownAuditIssueCount;
@property BOOL showAuditPopupNotifications;
@property BOOL hibpCaveatAccepted;
@property NSUInteger hibpCheckForNewBreachesIntervalSeconds;
@property NSTimeInterval lastDuration;
@property (nullable) NSDate* lastHibpOnlineCheck;
@property (readonly) BOOL showCachedHibpHits;
@property BOOL excludeShortNumericPINCodes;
@end
NS_ASSUME_NONNULL_END