Customer would like to use the method SetAS400Password in a Java environment that is available in ObRun (under ObRun\ObPanel\ObCtrlData ObUserAPI.class).
This method is not documented as part of the Java documentation in the CA Plex documentation.
FYI - there is a SetAS400Password method which is documented in the CA Plex documentation, but just for WinC (under topics Windows API - Conversation APIs).
CA Plex 7.2.1 and 7.3
It has been confirmed that regarding the Java variant, the CA Plex Java runtime provides the ObUserAPI.SetAS400Password method to set the AS/400 password within the CA Plex Java runtime property file.
The function signature is as follows:
ObUserAPI.SetAS400Password(ObFunction, &(1:), &(2:), &(3:));
Parameters:
ObFunction: The current function instance calling the API (use getFunction() to retrieve the function object)&(1:): The plain-text password to be encrypted and stored&(2:): The prefix/location in the client.properties file (e.g. "DefaultAS400")&(3:): The AS/400 username/profileTo implement this, create a source code object with three parameters based on the signature above and include the following method call within source code object.
Afterwards, call the source code object accordingly.
ObUserAPI.SetAS400Password ( getFunction(), &(1:), &(2:), &(3:) );
The CA Plex documentation will be updated accordingly regarding the Java variant