123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- //
- // OpenSecurityGuardSDK version 2.1.0
- //
- #import <Foundation/Foundation.h>
- /**
- * 各compoent的compoentid,在获取component对象时传入
- */
- 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,
- /**
- * 无效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;
- /**
- * SecurityGuardSDK管理类
- */
- @interface OpenSecurityGuardManager : NSObject
- /**
- * 获取SecurityGuardManager单例对象
- *
- * @return SecurityGuardManager单例对象
- */
- + (OpenSecurityGuardManager*) getInstance;
- /**
- * 获取安全签名接口
- *
- * @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;
- /**
- * 根据传入的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;
- @end
|