IBM Support

Connect:Direct Application Interface for Java - Protocol and cipher suite syntax

Troubleshooting


Problem

When using the Connect:Direct Application Interface for Java 1.1.00 iFix026 and later, does the AIJ support TLS 1.2 and is there anyway to specify a different cipher suite other than TLS_RSA_WITH_AES_128_CBC_SHA?

Symptom

How to specify these parameters to use in C:D AIJ

Cause

Clarification of product usage.

Environment

Connect:Direct Application Interface for Java.

Diagnosing The Problem

Using the correct syntax for the parameter values.

Resolving The Problem

There is not a method in the C:D AIJ classes for setting the cipher suite at this time.


To set the Security Protocol, use the following.

NodeParms np = new NodeParms();


nodeParms.setProtocol("TLS12");     /*[ The " . " needs to be removed between '1.2'  ]*/


       np.setNodeName("127.0.0.1;1363");
       np.setUserid(userId);
       np.setPassword(password.toCharArray());
       np.setProtocol("TLS12")
       np.setAppName("Client application")
       np.setLocale(Locale.getDefault());
       np.setPortRange("4000-5000,5050,5060,6000-7000");
       Node cdNode = new Node(np);

Other valid values include:
TLS
TLS11
TCPIP
SSL
PSTCPIP
PSSSL
PSTLS

Case can be ignored.

[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3J7U","label":"IBM Sterling Connect:Direct Application Interface for Java"},"ARM Category":[{"code":"a8m0z000000cwUfAAI","label":"CDJAI"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.1.0"}]

Document Information

Modified date:
30 September 2020

UID

swg22014242