SetAS400Password for Java
search cancel

SetAS400Password for Java

book

Article ID: 436322

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

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).

Environment

CA Plex 7.2.1 and 7.3

Resolution

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

To 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:) );

Additional Information

The CA Plex documentation will be updated accordingly regarding the Java variant