SSL with Java API Problem

Got this problem with my java codes (JSDK 1.3) when I try to use SSL.
I’ve applied up to EnterprisePlatform SP4 for Enterprise Server 4.1.1.
I’ve tried the java classpath with client.jar and client45.jar and still get the same problem.
Please advise.

java codes

public static COM.activesw.API.client.BrokerConnectionDescriptor
getBrokerConnectionDescriptor(){
COM.activesw.API.client.BrokerConnectionDescriptor bcd = new
COM.activesw.API.client.BrokerConnectionDescriptor();

try {
bcd.setAutomaticReconnect(true);
bcd.setSSLCertificate(prop.getProperty(“bcd.Dir”),
prop.getProperty(“bcd.Pass”), prop.getProperty(bcd.USE_DEFAULT_DN));
} catch (COM.activesw.API.client.BrokerException e) {
e.printStackTrace();
System.err.println(e.toCompleteString());
return null;
}

return bcd;
}

property file

#[BrokerConnectionDescriptor]
bcd.Dir=./ssl/dttbroker.cf
bcd.Pass=dttbroker
bcd.Name=C=SG, O=DSTA, OU=SERVER HOST, CN=DTTBroker

java error message

Security Error (114-1442): Secure sockets are not supported with this
version of the classes.

java.lang.Throwable()
java.lang.Exception()
COM.activesw.API.client.BrokerException(int, int, int)
COM.activesw.API.client.BrokerSecurityException(int, int)
void COM.activesw.API.client.BrokerConnection.loadSSL()
void
COM.activesw.API.client.BrokerConnection.testSSLContext(java.lang.String,
java.lang.String, java.lang.String)
void
COM.activesw.API.client.BrokerConnectionDescriptor.setSSLCertificate(java.la
ng.String, java.lang.String, java.lang.String)
COM.activesw.API.client.BrokerConnectionDescriptor
infobroker.admin.Base.getBrokerConnectionDescriptor()
void infobroker.admin.IBrokerServer.connect()
void infobroker.admin.AdminBase.monitorNow()
void infobroker.admin.Monitor.monitorNow()
void infobroker.admin.Monitor.run()
void java.lang.Thread.run()
void infobroker.admin.Monitor.main(java.lang.String )

Security Error (114-1442): Secure sockets are not supported with this
version of the classes. (BrokerConnectionDescriptor.setSSLCertificate-7717)

In the Java Platform - Volume 1 .pdf guide, there is a section titled SSL Shared Libraries in chapter 1. It states the following:

Client applications that wish to make use of the SSL feature must have access to the ActiveWorks SSL shared library. The location of this library is shown in Table 1-2.

Table 1-2. Location of the ActiveWorks SSL shared library for Java.

Supported Location of ActiveWorks SSL
Platforms shared library

IRIX /usr/active40/lib/libawssl40jn.so
AIX,
Digital UNIX, /opt/active40/lib/libawssl40jn.so
HP-UX, and
Solaris

Windows C:\active40\bin\awssl40jn.dll
(assuming that C is the drive
where ActiveWorks was installed)

If you are using Solaris, AIX, or Digital UNIX, you must add /opt/active40/lib to your LD_LIBRARY_PATH environment variable.

If you are using HP-UX, you must add /opt/active40/lib to your SHLIB_PATH environment variable.

Note: When you deploy your client applications written in Java, you must ensure that you also deploy the appropriate SSL shared library. If the SSL shared library cannot be located, an error will be reported that says the version of the Java classes that you are using do not support SSL.

If you are using IRIX, you must add
/opt/active40/lib to your LD_LIBRARYN32_PATH environment variable.

When using a Windows platform and assuming that C is the drive where the ActiveWorks library was installed, you must either add C:\active40\bin
to your PATH environment variable or copy the awssl40jn.dll to a directory that is already in your PATH.

Hope this helps.

Rob