Obtain all system user passwords in Maximo

Source: Internet
Author: User

ExampleCodeAs follows:

 

Package COM. interprosoft. maximo. maximostudy; <br/> Import psdi. MBO. mboremote; <br/> Import psdi. MBO. mbosetremote; <br/> Import psdi. util. mxcipher; <br/> Import psdi. util. mxcipherx; <br/> Import psdi. util. mxsession; <br/> public class test {<br/> Private Static final string Server = "localhost: 1099/mxserver "; <br/> Private Static final string super_username = "Maximo"; <br/> Private Static final string super_password = "Maximo "; </P> <p> Public static void main (string [] ARGs) throws exception {<br/> test = new test (); <br/> test. listuser (); <br/>}</P> <p> private void listuser () throws exception {<br/> mxsession = mxsession. getsession (); <br/> mxsession. sethost (server); <br/> mxsession. setusername (super_username); <br/> mxsession. setpassword (super_password); <br/> mxsession. connect (); </P> <p> mxcipher = new mxcipher (mxsession. getmxserverremote (); </P> <p> mbosetremote set = (mbosetremote) mxsession. getmboset ("maxuser"); <br/> set. setqbeexactmatch (true); <br/> mboremote MBO = (mboremote) set. movefirst (); <br/> while (true) {<br/> If (MBO = NULL) {<br/> break; <br/>}< br/> string username = MBO. getstring ("loginid"); <br/> byte [] bytes = MBO. getbytes ("password"); <br/> string Password = mxcipher. decdata (bytes); <br/> system. out. println (username + ":" + password); </P> <p> MBO = set. movenext (); <br/>}< br/> mxsession. disconnect (); <br/>}< br/>

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.