国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > WEB開發 > 正文

18.12.使用SecureAMFChannel進行AMF的安全通信

2024-04-27 13:52:26
字體:
來源:轉載
供稿:網友
18.12.1. 問題
我需要使用AMF 數據和安全Sockets 層(SSL)通過Flash Remoting 進行通信。
18.12.2. 解決辦法
在編譯程序所使用的services-config.xml 文件中定義你的channel 為SecureAMFChannel。
18.12.3. 討論
SecureAMFChannel 可讓你使用基于SSL 的AMFChannel 通信,以確保通過AMFChannel 發送的數據都是安全的。要創建一新的channel,使用安全版本的AMF 類,只要在servicesconfig.

xml 文件的channel 中使用mx.messaging.channels.SecureAMFChannel 作為其類,終端(endpoint)設置為flex.messaging.endpoints.SecureAMFEndpoint 類:
+展開
-XML
<channels>
<channel ref="secure-amf"/> 
</channels>
<channel-definition id="secure-amfclass="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://{server.name}:{server.port}/gateway/"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>

<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 聊城市| 元氏县| 民和| 蚌埠市| 辽宁省| 固始县| 桦甸市| 彩票| 公主岭市| 酒泉市| 深泽县| 尼玛县| 河北省| 桓仁| 修文县| 剑川县| 彰化市| 寿宁县| 汉中市| 东安县| 南华县| 庆元县| 通海县| 阳谷县| 新龙县| 侯马市| 顺昌县| 新安县| 黑河市| 渑池县| 新田县| 青田县| 阜城县| 沁源县| 砚山县| 南康市| 米易县| 策勒县| 塔城市| 湟源县| 黔南|