互联网服务java中间件

java 客户机-服务器模式的访问控制

如何限制java编写的客户机访问服务器的队列?比如在服务端MQ上 能不能对某个队列设置用户名、口令,然后必须提供正确的匹配信息才能存取消息?
参与8

7同行回答

sangmin214sangmin214系统工程师SS
你的MQ装在什么系统上?你可以写一个security exit来调用系统的用户认证服务(如果系统提供了这样的服务的话)。好像在这个论坛上看到有个人贴出来过一个相关的链接,不过那个上面的security exit是调用windows的用户认证服务的。...显示全部
你的MQ装在什么系统上?你可以写一个security exit来调用系统的用户认证服务(如果系统提供了这样的服务的话)。好像在这个论坛上看到有个人贴出来过一个相关的链接,不过那个上面的security exit是调用windows的用户认证服务的。收起
系统集成 · 2010-08-22
浏览492
goylsfgoylsf系统工程师天见
就是这样字的显示全部
就是这样字的收起
互联网服务 · 2010-08-22
浏览531
sangmin214sangmin214系统工程师SS
现在有个问题。你是想验证客户提供的用户名/密码,并且想通过MQ所在的系统来验证,也就是说客户提供的用户名和密码在MQ所在的系统是一个可用的用户名/密码。这样的么?显示全部
现在有个问题。你是想验证客户提供的用户名/密码,并且想通过MQ所在的系统来验证,也就是说客户提供的用户名和密码在MQ所在的系统是一个可用的用户名/密码。这样的么?收起
系统集成 · 2010-08-19
浏览489
goylsfgoylsf系统工程师天见
This document applies only to the following language version(s):English   Question What is the purpose of MQEnvironment.password? Does it get validated at the OS level? When running a WebSphere MQ Java™ Client program, you supply values in...显示全部
This document applies only to the following language version(s):
English
  
Question

What is the purpose of MQEnvironment.password?

Does it get validated at the OS level?

When running a WebSphere MQ Java™ Client program, you supply values in the MQEnvironment.userID and the MQEnvironment.password. However, it seems that MQ ignores the MQEnvironment.password,

You find that you have access to queues, regardless of the value of the password (even if the password is not a valid one).  
  


Answer
The MQEnvironment.password is used by a user written security exit program. If a password supplied by an application has to be validated, then you must have a security exit that validates the password.

The validation of the userID is done at the operating system level.

Additional information
WebSphere MQ validates only the userID passed from the client application and the password is always ignored.


Client side:
If a security exit is defined for the client, then this security exit may validate the password.
If a security exit is not defined for the client, then the value of the password is transmitted to the server.

Server side:
If a security exit is defined for the server, then this security exit might validate the password.
If a security exit is not defined for the server, then the value of the password is ignored.收起
互联网服务 · 2010-08-16
浏览539
goylsfgoylsf系统工程师天见
可以設置的,默認的話連接的都是超級mq用戶,你可以設置一個受限制的mq用戶,連接的時候讓客戶端用這個用戶 ...asd8010553 发表于 2010-8-13 18:04     /*设置MQEnvironment 属性以便客户机连接*/ MQEnvironment.hostname = hostName; MQEnvironment.channel = cha...显示全部
可以設置的,默認的話連接的都是超級mq用戶,你可以設置一個受限制的mq用戶,連接的時候讓客戶端用這個用戶 ...
asd8010553 发表于 2010-8-13 18:04



    /*设置MQEnvironment 属性以便客户机连接*/
MQEnvironment.hostname = hostName;
MQEnvironment.channel = channel ;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES_CLIENT);
MQEnvironment.port = port;
MQEnvironment.CCSID = ccsid;
MQEnvironment.userID = "yuanpf";
MQEnvironment.password = "";

我设置了userID 但是似乎没起到限制作用,不知道能不能提供具体配置如何的文章?收起
互联网服务 · 2010-08-16
浏览557
sangmin214sangmin214系统工程师SS
也可以自己写个security exit,配置到server connection上面,然后做任何你想做的认证显示全部
也可以自己写个security exit,配置到server connection上面,然后做任何你想做的认证收起
系统集成 · 2010-08-13
浏览471
可以設置的,默認的話連接的都是超級mq用戶,你可以設置一個受限制的mq用戶,連接的時候讓客戶端用這個用戶去連接mq服務端显示全部
可以設置的,默認的話連接的都是超級mq用戶,你可以設置一個受限制的mq用戶,連接的時候讓客戶端用這個用戶去連接mq服務端收起
2010-08-13
浏览486

提问者

goylsf
系统工程师天见
擅长领域: portal中间件

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2010-08-13
  • 关注会员:1 人
  • 问题浏览:4954
  • 最近回答:2010-08-22
  • X社区推广