开发者

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

开发者 https://www.devze.com 2023-03-18 14:40 出处:网络
I\'m u开发者_JS百科sing a Amf channel , How to add security to My channel..You need to change the channel def\'s, you\'ll find them in:

I'm u开发者_JS百科sing 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>

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

Make sense?


Send it over SSL and use SecureAMFChannel.

0

精彩评论

暂无评论...
验证码 换一张
取 消