酷店

IOpenSecureSignatureComponent.h 977B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // OpenSecurityGuardSDK version 2.1.0
  3. //
  4. #ifndef OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h
  5. #define OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h
  6. @class OpenSecurityGuardParamContext;
  7. /**
  8. * 签名接口
  9. */
  10. @protocol IOpenSecureSignatureComponent <NSObject>
  11. /**
  12. * 发起签名请求
  13. *
  14. * @param paramContext 包含签名所需要参数的结构体对象
  15. *
  16. * @param authCode SDK的授权码,不传或为空串,使用默认加密文件
  17. *
  18. * @return 签名值,失败时返回nil
  19. */
  20. - (NSString*) signRequest: (OpenSecurityGuardParamContext*) paramContext
  21. authCode: (NSString*) authCode;
  22. /*
  23. * 对cookie进行签名加密
  24. *
  25. * @param key 计算文件签名时用到的密钥所对应的key
  26. * @param data 需要签名加密的cookie数据
  27. */
  28. - (NSString*) getSafeCookie: (NSString*) data
  29. secretKey: (NSString*) key
  30. authCode: (NSString*) authCode;
  31. @end
  32. #endif