如何确保频道安全?我正在使用Amf频道,如何为我的频道增加安全性 [英] How To Make a channel Secure ? I'm using a Amf channel , How to add security to My channel

查看:92
本文介绍了如何确保频道安全?我正在使用Amf频道,如何为我的频道增加安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Amf频道,如何为我的频道添加安全性.

I'm using a Amf channel , How to add security to My channel..

推荐答案

您需要更改频道定义,可以在以下位置找到它们:

You need to change the channel def's, you'll find them in:

WEB-INF/flex/services-config.xml

更改或添加安全定义和端点-这是一个示例:

Change or add a secure definition and endpoint - here is an example:

<channel-definition id="my-server" class="mx.messaging.channels.AMFChannel">
    <endpoint uri="http://{server.name}:{server.port}/{context.root}/amf" class="flex.messaging.endpoints.AMFEndpoint" /> 
</channel-definition>
<channel-definition id="my-server-secure" class="mx.messaging.channels.SecureAMFChannel">
    <endpoint uri="https://{server.name}:443/{context.root}/amf" class="flex.messaging.endpoints.SecureAMFEndpoint" />
</channel-definition>

请注意,该类必须与您通过SSL(https/端口443)进行连接时的类相同

Notice the class must be different as well as you're connecting over SSL (https / port 443)

有道理吗?

这篇关于如何确保频道安全?我正在使用Amf频道,如何为我的频道增加安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆