Mac SDK
ZoomSDKAuthService.h
1
//
2
// ZoomSDKAuthService.h
3
// ZoomSDK
4
//
5
// Created by TOTTI on 7/18/16.
6
// Copyright (c) 2016 Zoom Video Communications,Inc. All rights reserved.
7
//
8
9
#import <Cocoa/Cocoa.h>
10
#import "ZoomSDKErrors.h"
11
12
@interface
ZoomSDKAuthContext
: NSObject
13
17
@property
(nonatomic, copy) NSString *
jwtToken
;
18
19
@end
20
21
@interface
ZoomSDKAccountInfo
: NSObject
22
{
23
ZoomSDKUserType _userType;
24
NSString* _displayName;
25
}
30
- (NSString*) getDisplayName;
35
- (ZoomSDKUserType) getSDKUserType;
36
@end
37
38
@protocol
ZoomSDKAuthDelegate
;
44
@interface
ZoomSDKAuthService
: NSObject
45
{
46
BOOL _isLogin;
47
id<ZoomSDKAuthDelegate> _delegate;
48
}
49
@property
(assign, nonatomic) id<ZoomSDKAuthDelegate> delegate;
50
51
59
- (ZoomSDKError)sdkAuth:(NSString*)key appSecret:(NSString*)secret;
60
67
- (ZoomSDKError)sdkAuth:(
ZoomSDKAuthContext
*)jwttoken;
68
73
- (BOOL)isAuthorized;
74
82
- (ZoomSDKError)login:(NSString*)userName Password:(NSString*)password RememberMe:(BOOL)rememberMe;
83
90
- (ZoomSDKError)loginSSO:(NSString*)ssoToken NS_DEPRECATED_MAC(1.0, 4.3);
91
- (ZoomSDKError)loginSSO:(NSString*)ssoToken RememberMe:(BOOL)rememberMe NS_AVAILABLE_MAC(4.3);
96
- (ZoomSDKError)logout;
97
102
- (
ZoomSDKAccountInfo
*)getAccountInfo;
103
108
- (NSString*)getSDKIdentity;
109
115
- (ZoomSDKError)isEmailLoginEnabled:(BOOL*)isEnabled;
116
@end
117
118
119
@protocol
ZoomSDKAuthDelegate
<NSObject>
120
121
@required
127
- (void)onZoomSDKAuthReturn:(ZoomSDKAuthError)returnValue;
128
132
- (void)
onZoomAuthIdentityExpired
;
133
134
@optional
140
- (void)onZoomSDKLogin:(ZoomSDKLoginStatus)loginStatus failReason:(NSString*)reason;
141
145
- (void)
onZoomSDKLogout
;
146
151
- (void)
onZoomIdentityExpired
;
152
153
@end
ZoomSDKAccountInfo
Definition:
ZoomSDKAuthService.h:22
ZoomSDKAuthDelegate-p
Definition:
ZoomSDKAuthService.h:119
-[ZoomSDKAuthDelegate-p onZoomAuthIdentityExpired]
void onZoomAuthIdentityExpired()
Specify to get the response of ZOOM SDK authorization identity expired.
ZoomSDKAuthContext
Definition:
ZoomSDKAuthService.h:13
ZoomSDKAuthService
Callback event of ZOOM SDK authorization. Authorize Zoom SDK and the custom application with the key/...
Definition:
ZoomSDKAuthService.h:45
-[ZoomSDKAuthDelegate-p onZoomSDKLogout]
void onZoomSDKLogout()
Specify to get the response of ZOOM SDK logout.
-[ZoomSDKAuthDelegate-p onZoomIdentityExpired]
void onZoomIdentityExpired()
Specify to get the response if ZOOM identity is expired.
ZoomSDKAuthContext::jwtToken
NSString * jwtToken
jwtToken The new auth token.
Definition:
ZoomSDKAuthService.h:17
Generated by
1.8.20