ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Java / JMSpcf read AUTH info

Post new topicReply to topic
pcf read AUTH info View previous topic :: View next topic
Author Message
vasilev
PostPosted: Wed Nov 13, 2019 10:53 pm Post subject: pcf read AUTH info Reply with quote

Novice

Joined: 31 Oct 2014
Posts: 20
Location: Germany

hello,
i am trying to read all authority records for all users.


https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ref.adm.doc/q087320_.htm


this is the code:

Code:
PCFMessage msg = new PCFMessage(CMQCFC.MQCMD_INQUIRE_AUTH_RECS);
                     msg.addParameter(MQConstants.MQIACF_AUTH_OPTIONS,
                              MQConstants.MQAUTHOPT_NAME_ALL_MATCHING + MQConstants.MQAUTHOPT_ENTITY_EXPLICIT + MQConstants.MQAUTHOPT_NAME_AS_WILDCARD);
                     msg.addParameter(MQConstants.MQCACF_AUTH_PROFILE_NAME, "*");
                     msg.addParameter(MQConstants.MQIACF_OBJECT_TYPE, MQConstants.MQOT_ALL);
                  


not sure how to parse the MQIACF_AUTHORIZATION_LIST as it should be an array ?


if you can help.

thank you
_________________
Regards
V.Vasilev
Vasilev.link - IT Consulting Services
Back to top
View user's profile Send private message Visit poster's website
vasilev
PostPosted: Thu Nov 14, 2019 2:11 am Post subject: Reply with quote

Novice

Joined: 31 Oct 2014
Posts: 20
Location: Germany

found the answer

Code:
int[] autharr = (int[])response.getParameterValue (CMQCFC.MQIACF_AUTHORIZATION_LIST);
                        for (int i=0; i<autharr.length; i++)
                        {
                          System.out.println(autharr[i]);
                        }


posting here for info.
_________________
Regards
V.Vasilev
Vasilev.link - IT Consulting Services
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSpcf read AUTH info
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.