HID APPROVE SDK 6.1
HID Approve SDK for iOS/macOS
Loading...
Searching...
No Matches
HIDProtectionPolicy.h
Go to the documentation of this file.
1/* ---------------------------------------------------------------------------
2 (c) 2015-2025, HID Global Corporation, part of ASSA ABLOY.
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7 - Redistributions of source code must retain the above copyright notice,
8 this list of conditions and the following disclaimer.
9 - Redistributions in binary form must reproduce the above copyright notice,
10 this list of conditions and the following disclaimer in the documentation
11 and/or other materials provided with the distribution.
12
13 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23--------------------------------------------------------------------------- */
24
25#import <Foundation/Foundation.h>
26#import "HIDIdentifier.h"
27
33
44
48@protocol HIDLockPolicy
49
55
56@end
57
61@protocol HIDCounterLockPolicy <HIDLockPolicy>
62
67- (int)counter;
68
69@end
70
101@protocol HIDDelayLockPolicy <HIDLockPolicy>
102
107- (int)counter;
108
113- (int)delay;
114
115@end
116
127
131@protocol HIDProtectionPolicy <NSObject>
132
138
144
149- (id<HIDLockPolicy>)lockPolicy;
150
151@end
152
175@protocol HIDPasswordPolicy <HIDProtectionPolicy>
193- (BOOL)changePassword:(NSString*)oldPassword new:(NSString*)newPassword error:(NSError**)error;
194
210- (BOOL)verifyPassword:(NSString*)password error:(NSError**)error;
211
217
223
229
235
241
247
252- (int)minAlpha;
253
259
265
271
277
282- (int)maxAlpha;
283
291- (int)minAge;
292
299- (int)maxAge;
300
306
314
320
326
332@end
333
345
349@protocol HIDBioPasswordPolicy<HIDPasswordPolicy>
350
357- (BOOL)enableBioAuthentication:(NSString*)sPassword error:(NSError**)error;
358
364- (BOOL)disableBioAuthentication:(NSError**)error;
365
371
372@end
373
377@protocol HIDDevicePolicy <HIDProtectionPolicy>
378
379@end
380
Object reference.
HIDPolicyType
Protection policy types.
Definition HIDProtectionPolicy.h:121
@ HIDPolicyTypeBioPassword
Item is protected by external biometric policy.
Definition HIDProtectionPolicy.h:124
@ HIDPolicyTypePassword
Item is protected by a password provided by the user.
Definition HIDProtectionPolicy.h:122
@ HIDPolicyTypeDevice
Item is protected by device-specific information.
Definition HIDProtectionPolicy.h:123
HIDLockType
Known types of lock policy.
Definition HIDProtectionPolicy.h:38
@ HIDLockTypeSilent
The credential access is limited by delegating validation and blocking to server-side controls.
Definition HIDProtectionPolicy.h:42
@ HIDLockTypeNone
The credential never locks.
Definition HIDProtectionPolicy.h:39
@ HIDLockTypeLock
The credential locks after a certain number of attempts.
Definition HIDProtectionPolicy.h:40
@ HIDLockTypeDelay
An exponential delay is added for each failed authentication attempt using that credential.
Definition HIDProtectionPolicy.h:41
HIDBioAuthenticationState
Working state of authentication with biometrics.
Definition HIDProtectionPolicy.h:338
@ HIDBioAuthenticationStateNotCapable
The device has no biometric sensor, authentication with biometrics is not possible.
Definition HIDProtectionPolicy.h:341
@ HIDBioAuthenticationStateNotEnrolled
The user did not enrolled biometric features at the device level, authentication with biometrics cann...
Definition HIDProtectionPolicy.h:342
@ HIDBioAuthenticationStateEnabled
Authentication with biometrics is enabled, the SDK will accept password as nil in authentication meth...
Definition HIDProtectionPolicy.h:339
@ HIDBioAuthenticationStateNotEnabled
Authentication with biometrics is not enabled. To enable, a call to HIDBioPasswordPolicy....
Definition HIDProtectionPolicy.h:340
@ HIDBioAuthenticationStateInvalidKey
the cryptographic key has been invalidated.
Definition HIDProtectionPolicy.h:343
object identifier.
Definition HIDIdentifier.h:37
HIDBioAuthenticationState getBioAuthenticationState()
Returns the current working state of authentication with biometrics.
int counter()
Returns the max counter value of the credential before it gets locked.
int delay()
Returns the initial delay in seconds.
int counter()
Returns the maximum counter value after which exponential delay is fixed.
HIDLockType lockType()
returns the lock policy type.
int maxHistory()
Get max password history limit. This security setting determines the number of unique new passwords t...
int minUpperCase()
Get minimum number of upper case letters.
int maxUpperCase()
Get maximum number of upper case letters.
int currentAge()
Get current password age since last change.
int minNonAlpha()
Get minimum number of special characters (non alphanumeric).
int minNumeric()
Get the minimum number of numeric characters.
int minAlpha()
Get minimum number of alphabetical characters.
BOOL isSequenceAllowed()
Gets password sequence allowed flag.
BOOL isCacheEnabled()
Gets password cache flag.
int minAge()
Get minimum age for a password change. This security setting determines the period of time (in days) ...
int getCacheTimeout()
Gets password cache timeout.
int maxAge()
Get maximum age for a password. This determines how long (in days) users can keep a password before t...
int minLowerCase()
Get minimum number of lower case letters.
int minLength()
Get minimum password length.
int maxNonAlpha()
Get maximum number of special characters (non alphanumeric).
int maxNumeric()
Get maximum number of numeric characters.
int maxLowerCase()
Get maximum number of lower case letters.
int maxLength()
Get maximum password length.
int maxAlpha()
Get maximum number of alphabetical characters.
id< HIDLockPolicy > lockPolicy()
Returns the lock policy.
HIDIdentifier * policyId()
Returns the protection policy identifier.
HIDPolicyType policyType()
Returns the protection policy type.