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

首頁 > 網(wǎng)站 > WEB開發(fā) > 正文

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

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

xml 文件的channel 中使用mx.messaging.channels.SecureAMFChannel 作為其類,終端(endpoint)設(shè)置為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>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 永德县| 子长县| 石城县| 册亨县| 澄江县| 富裕县| 金昌市| 闵行区| 永登县| 法库县| 宜宾县| 开化县| 南木林县| 重庆市| 萝北县| 钟祥市| 甘洛县| 保定市| 济宁市| 怀来县| 昔阳县| 沾益县| 扶沟县| 锡林浩特市| 方城县| 邛崃市| 林甸县| 集贤县| 开原市| 北海市| 麦盖提县| 阿拉尔市| 永年县| 苏尼特左旗| 鄄城县| 嘉峪关市| 应用必备| 宁武县| 娱乐| 阿坝| 内丘县|