• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
GDAuthenticationManager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2023 BlackBerry Limited. All rights reserved.
3  *
4  */
5 
6 #import <Foundation/Foundation.h>
7 
8 
23 extern NSString * _Nonnull const GDReAuthenticationResultNotification;
24 
27 typedef NS_ENUM(NSInteger, GDReAuthResult)
28 {
31 
34 
37 
40 
43 
46 
49 
52 };
53 
56 typedef NS_ENUM(NSInteger, GDReAuthType)
57 {
60 
63 
66 
69 
72 
75 
76 
77 };
78 
79 NS_ASSUME_NONNULL_BEGIN
80 
81 
82 
88 @interface GDAuthenticationManager : NSObject
89 
93 + (NSString *)reauthenticate:(NSString *)title
94  message:(NSString *)message
95  timeoutInSeconds:(NSUInteger)timeout
96  gracePeriodInSeconds:(NSUInteger)gracePeriod
97  enforce:(BOOL)enforce
98  requirePassword:(BOOL)requirePassword;
99 
102 + (NSString *)reauthenticate:(NSString *)title
103  message:(NSString *)message
104  timeoutInSeconds:(NSUInteger)timeout;
105 
108 + (NSString *)reauthenticate:(NSString *)title
109  message:(NSString *)message
110  timeoutInSeconds:(NSUInteger)timeout
111  gracePeriodInSeconds:(NSUInteger)gracePeriod;
112 
123 + (NSString *)getReauthenticationToken:(NSNotification *)notification;
124 
125 
136 + (GDReAuthResult)getReauthenticationResult:(NSNotification *)notification;
137 
138 
149 + (GDReAuthType)getReauthenticationType:(NSNotification *)notification;
150 
151 @end
152 
153 NS_ASSUME_NONNULL_END
GDReAuthTypeNoPassword
@ GDReAuthTypeNoPassword
Definition: GDAuthenticationManager.h:62
GDReAuthResultErrorUserCancelled
@ GDReAuthResultErrorUserCancelled
Definition: GDAuthenticationManager.h:36
GDReAuthResultSuccess
@ GDReAuthResultSuccess
Definition: GDAuthenticationManager.h:30
GDReAuthenticationResultNotification
NSString *const _Nonnull GDReAuthenticationResultNotification
NSNotification name for GDAuthenticationManager notifications.
GDReAuthTypeGracePeriod
@ GDReAuthTypeGracePeriod
Definition: GDAuthenticationManager.h:71
GDReAuthTypePassword
@ GDReAuthTypePassword
Definition: GDAuthenticationManager.h:65
GDReAuthResultErrorUnknown
@ GDReAuthResultErrorUnknown
Definition: GDAuthenticationManager.h:51
GDReAuthResultErrorNotSupported
@ GDReAuthResultErrorNotSupported
Definition: GDAuthenticationManager.h:45
GDReAuthResultErrorInProgress
@ GDReAuthResultErrorInProgress
Definition: GDAuthenticationManager.h:42
GDReAuthResult
GDReAuthResult
BlackBerry reauthentication result type.
Definition: GDAuthenticationManager.h:27
GDAuthenticationManager
Definition: GDAuthenticationManager.h:88
GDReAuthResultErrorFailedAuth
@ GDReAuthResultErrorFailedAuth
Definition: GDAuthenticationManager.h:33
GDReAuthType
GDReAuthType
BlackBerry reauthentication result type.
Definition: GDAuthenticationManager.h:56
GDReAuthTypeTrustedAuthenticator
@ GDReAuthTypeTrustedAuthenticator
Definition: GDAuthenticationManager.h:74
GDReAuthTypeNone
@ GDReAuthTypeNone
Definition: GDAuthenticationManager.h:59
GDReAuthResultErrorExpired
@ GDReAuthResultErrorExpired
Definition: GDAuthenticationManager.h:39
GDReAuthResultErrorInvalidRequest
@ GDReAuthResultErrorInvalidRequest
Definition: GDAuthenticationManager.h:48
GDReAuthTypeBiometric
@ GDReAuthTypeBiometric
Definition: GDAuthenticationManager.h:68