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/>