国产探花免费观看_亚洲丰满少妇自慰呻吟_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>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 依安县| 塘沽区| 东丽区| 黑龙江省| 高密市| 田阳县| 古浪县| 辽中县| 湘乡市| 靖江市| 黔西| 长沙县| 疏勒县| 抚远县| 浏阳市| 永仁县| 淮安市| 麻栗坡县| 安阳市| 新宾| 扎兰屯市| 洪雅县| 康平县| 封丘县| 客服| 内乡县| 昌宁县| 沙洋县| 商都县| 开封县| 松原市| 东城区| 开原市| 遵化市| 永春县| 怀远县| 吉木萨尔县| 修武县| 清远市| 观塘区| 枣强县|