简体   繁体   English

AS3 SecureSocket addBinaryChainBuildingCertificate不可用?

[英]AS3 SecureSocket addBinaryChainBuildingCertificate not avaiable?

I want to use the addBinaryChainBuildingCertificate() method of the SecureSocket to setup a connection to a HTTPS/SSL Webservice. 我想使用SecureSocket的addBinaryChainBuildingCertificate()方法来建立与HTTPS / SSL Web服务的连接。 But this method is not avaiable inside the flash platform. 但是该方法在Flash平台内部不可用。 I got this error: 我收到此错误:

ReferenceError: Error #1069: Property addBinaryChainBuildingCertificate not found on flash.net.SecureSocket and there is no default value.

So I`m wondering. 所以我想知道。 Is this method only avaiable when using Flash builder and Flex? 仅当使用Flash Builder和Flex时才可以使用此方法吗? I have Flash CS5 and Adobe air 3.8 installed. 我安装了Flash CS5和Adobe air 3.8。

I read the reference: 我阅读了参考资料:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html http://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html

They said you can use it, but it is not mentioned in the paragraph: "Public Methods" 他们说您可以使用它,但在“公共方法”段中未提及

you need to compile as an App (ie native binary for iOS or Android) not as Flash. 您需要编译为应用程序(即,iOS或Android的本机二进制文件)而不是Flash。 Not all methods and classes are available to Flash (ie SWF for web) 并非所有方法和类都适用于Flash(例如,用于Web的SWF)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM