How To Make a channel Secure ? I'm using a Amf channel , How to add security to My channel

佐手、 提交于 2019-12-13 18:55:29

问题


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


回答1:


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>

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

Make sense?




回答2:


Send it over SSL and use SecureAMFChannel.



来源:https://stackoverflow.com/questions/6615368/how-to-make-a-channel-secure-im-using-a-amf-channel-how-to-add-security-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!