Files
yinmeng-ios/xplan-ios/Library/RPSDK/SecurityGuardSDK.framework/Headers/Open/OpenSecurityGuardManager.h

329 lines
6.7 KiB
C
Raw Normal View History

2021-09-23 14:52:12 +08:00
//
// OpenSecurityGuardSDK version 2.1.0
//
#import <Foundation/Foundation.h>
/**
* compoent的compoentidcomponent对象时传入
*/
typedef enum {
/**
* component
*/
OpenSecureSignatureComponentID,
/**
* component
*/
OpenDynamicDataStoreComponentID,
/**
* component
*/
OpenStaticDataStoreComponentID,
/**
* component
*/
OpenInitComponentID,
/**
* component
*/
OpenStaticDataEncryptCompnentID,
/**
* data collection compnent
*/
OpenDataCollectionCompnentID,
/**
* dynamic data encrypt componentID
*/
OpenDynamicDataEncryptComponentID,
/**
* StaticKeyEncrypt componentID
*/
OpenStaticKeyEncryptComponentID,
/**
* UMID componentID
*/
OpenUMIDComponentID,
/**
* OpenSDK componentID
*/
OpenOpenSDKComponentID,
/**
* AtlasEncrypt ComponentID
*/
OpenAtlasEncryptComponentID,
/**
* SimulatorDetect ComponentID
*/
OpenSimulatorDetectComponentID,
/**
* NoCpatcha ComponentID
*/
OpenNoCaptchaComponentID,
/**
* SecurityBody ComponentID
*/
OpenSecurityBodyComponentID,
/**
* component
*/
OpenInvalidComponentID
} OpenSecurityGuardComponentID;
/**
* IOpenSecureSignatureComponent.h
*/
@protocol IOpenSecureSignatureComponent;
/**
* IOpenDynamicDataStoreComponent.h
*/
@protocol IOpenDynamicDataStoreComponent;
/**
* IOpenStaticDataStoreComponent.h
*/
@protocol IOpenStaticDataStoreComponent;
/**
* IOpenStaticDataEncryptComponent.h
*/
@protocol IOpenStaticDataEncryptComponent;
/**
* IOpenDataCollectionComponent.h
*/
@protocol IOpenDataCollectionComponent;
/**
* IOpenDynamicDataEncryptComponent.h
*/
@protocol IOpenDynamicDataEncryptComponent;
/**
* IOpenStaticKeyEncryptComponent.h
*/
@protocol IOpenStaticKeyEncryptComponent;
/**
* umid IUMIDComponent.h
*/
@protocol IOpenUMIDComponent;
/**
* openSDK IOpenOpenSDKComponent.h
*/
@protocol IOpenOpenSDKComponent;
/**
* IOpenAtlasEncryptComponent.h
*/
@protocol IOpenAtlasEncryptComponent;
/**
* NoCaptcha接口 IOpenNocpatchaComponent.h
*/
@protocol IOpenNoCaptchaComponent;
/**
* IOpenSimulatorDetectComponent.h
*/
@protocol IOpenSimulatorDetectComponent;
/**
* IOpenSecurityBodyComponent.h
*/
@protocol IOpenSecurityBodyComponent;
/**
* SecurityGuardSDK管理类
*/
@interface OpenSecurityGuardManager : NSObject
/**
* SecurityGuardManager单例对象
*
* @return SecurityGuardManager单例对象
*/
+ (OpenSecurityGuardManager*) getInstance;
/**
* SecurityGuardManager单例对象
*
* @param authCode authcode
*
* @return SecurityGuardManager单例对象
*/
+ (OpenSecurityGuardManager*) getInstance: (NSString *)authCode
error: (NSError * __autoreleasing *)error;
2022-05-17 18:11:11 +08:00
/**
* SecurityGuardManager单例对象
*
* @param authCode authcode
* @param customBundlePath BundlePath
*
* @return SecurityGuardManager单例对象
*/
+ (OpenSecurityGuardManager*) getInstance: (NSString *)authCode
withCustomBundlePath: (NSString *)customBundlePath
error: (NSError * __autoreleasing *)error;
2021-09-23 14:52:12 +08:00
/**
*
*
* @return nil
*/
- (id<IOpenSecureSignatureComponent>) getSecureSignatureComp;
/**
*
*
* @return nil
*/
- (id<IOpenDynamicDataStoreComponent>) getDynamicDataStoreComp;
/**
*
*
* @return nil
*/
- (id<IOpenStaticDataStoreComponent>) getStaticDataStoreComp;
/**
*
*
* @return nil
*/
- (id<IOpenStaticDataEncryptComponent>) getStaticDataEncryptComp;
/**
*
*
* @return nil
*/
- (id<IOpenDataCollectionComponent>) getDataCollectionComp;
/**
*
*
* @return nil
*/
- (id<IOpenDynamicDataEncryptComponent>) getDynamicDataEncryptComp;
/**
*
*
* @return nil
*/
- (id<IOpenStaticKeyEncryptComponent>) getStaticKeyEncryptComp;
/**
* UMID接口
*
* @return UMID接口nil
*/
- (id<IOpenUMIDComponent>) getUMIDComp;
/**
* OpenSDK接口
*
* @return OpenSDK接口nil
*/
- (id<IOpenOpenSDKComponent>) getOpenOpenSDKComp;
/**
*
*
* @return nil
*/
- (id<IOpenAtlasEncryptComponent>) getAtlasEncryptComp;
/**
* NoCaptcha接口
*
* @return NoCaptcha接口nil
*/
- (id<IOpenNoCaptchaComponent>) getNoCaptchaComp;
/**
*
*
* @return nil
*/
- (id<IOpenSimulatorDetectComponent>) getSimulatorDetectComp;
/**
*
*
* @return nil
*/
- (id<IOpenSecurityBodyComponent>) getSecurityBodyComp;
/**
* component id获取对应的component对象
*
* @param componentId compoent的id
*
* @return componentId对应的component对象nil
*/
- (id) getComponent: (OpenSecurityGuardComponentID) componentId;
/**
* protocol
*
* @param protocol interface
*
* @return protocol
*/
- (id) getInterface: (Protocol*) protocol;
/**
* sdk当前版本号
*
* @return sdk当前版本号
*/
- (NSString*) getSDKVersion;
/**
* 线SDK
*
* @return 线SDK
*/
- (BOOL) isOpen;
/**
*
*
* @return
*/
+ (BOOL) setGlobalUserData: (NSString *) key
GlobalUserValue: (NSString *) value;
@end