我正在使用 Amf 频道,如何为我的频道添加安全性..
问问题
2217 次
2 回答
1
您需要更改频道定义,您可以在以下位置找到它们:
WEB-INF/flex/services-config.xml
更改或添加安全定义和端点 - 这是一个示例:
<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)
有道理?
于 2011-07-07T22:36:43.637 回答
0
通过 SSL 发送并使用 SecureAMFChannel。
于 2011-07-07T18:32:47.033 回答