• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GDAuthenticationManager.h
Go to the documentation of this file.
1 /*
2  * (c) 2019 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 
148 @interface GDAuthenticationManager : NSObject
149 
153 + (NSString *)reauthenticate:(NSString *)title
154  message:(NSString *)message
155  timeoutInSeconds:(NSUInteger)timeout
156  gracePeriodInSeconds:(NSUInteger)gracePeriod
157  enforce:(BOOL)enforce
158  requirePassword:(BOOL)requirePassword;
159 
162 + (NSString *)reauthenticate:(NSString *)title
163  message:(NSString *)message
164  timeoutInSeconds:(NSUInteger)timeout;
165 
168 + (NSString *)reauthenticate:(NSString *)title
169  message:(NSString *)message
170  timeoutInSeconds:(NSUInteger)timeout
171  gracePeriodInSeconds:(NSUInteger)gracePeriod;
172 
183 + (NSString *)getReauthenticationToken:(NSNotification *)notification;
184 
185 
196 + (GDReAuthResult)getReauthenticationResult:(NSNotification *)notification;
197 
198 
209 + (GDReAuthType)getReauthenticationType:(NSNotification *)notification;
210 
211 @end
212 
213 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
Manage user authentication and require the user to authenticate.
Definition: GDAuthenticationManager.h:148
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