Hello everyone.
I have some problem with executing any operation (create, copy) with nosuperuser user. I have java method which copy certain object and paste it to another location. In this method I can create dmadmin (superuser) session and execute copy or other operation. Here I write username (dmadmin) and password (mypass).
public class executeMyOperation() { this.sMgr = createSessionManager("MyRepository", "dmadmin", "mypass"); this.session = this.sMgr.getSession("MyRepository"); IDfCopyOperation copy = this.clientx.getCopyOperation(); copy.add(sourceFolder); copy.setDestinationFolderId(destinationFolder.getObjectId()); copy.execute();}IDfSessionManager createSessionManager(String docbase, String user, String pass) throws Exception { this.client = this.clientx.getLocalClient(); this.sMgr = this.client.newSessionManager(); IDfLoginInfo loginInfoObj = this.clientx.getLoginInfo(); loginInfoObj.setUser(user); loginInfoObj.setPassword(pass); this.sMgr.setIdentity(docbase, loginInfoObj); return this.sMgr;}But I want execute copy operation and keep secret password in my java code. How can I pass to superuser user in my java code without writing password? Or is there any other solution?
Thanks in advance