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

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

18.12.使用SecureAMFChannel進(jìn)行AMF的安全通信

2024-04-27 13:52:26
字體:
供稿:網(wǎng)友
18.12.1. 問題
我需要使用AMF 數(shù)據(jù)和安全Sockets 層(SSL)通過Flash Remoting 進(jìn)行通信。
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ā)表
主站蜘蛛池模板: 宁化县| 永城市| 来宾市| 邵阳县| 修武县| 炎陵县| 阳信县| 和田市| 高安市| 随州市| 普陀区| 衡东县| 汤阴县| 开化县| 璧山县| 双桥区| 高雄市| 靖江市| 乌审旗| 东光县| 平阴县| 西贡区| 固镇县| 奉节县| 元氏县| 攀枝花市| 桃源县| 巴彦淖尔市| 乌鲁木齐县| 西安市| 葫芦岛市| 巴塘县| 察隅县| 广灵县| 宜春市| 班戈县| 台北县| 班戈县| 平远县| 开远市| 玛曲县|