You can create PowerBuilder clients that connect to EAServer using SSL connections, using techniques similar to that used in other client types. Since PowerBuilder connects to EAServer using the C++ client ORB, SSL in PowerBuilder requires a full EAServer C++ client installation.
You can configure the settings required for SSL connections using two techniques:
By setting ORB properties When using this technique, the required SSL settings must be known in advance, and your application can connect only to servers that use certificates issued by a known, trusted certificate authority. To use this technique, set the required properties in the options string for the Connection or JaguarORB object. The SSL options for PowerBuilder clients are the same as listed for C++ clients in “ORB properties for secure sessions”.
By using the SSLServiceProvider interface The SSLServiceProvider interface allows your application to determine what options are available at runtime. In addition, you can supply a callback class with methods that supply settings as needed and respond to exceptional cases. For example, the client ORB invokes callback methods if the application specifies an invalid certificate password or if a connection is made to a server that uses a certificate issued by an unknown certificate authority. PowerBuilder provides implementations of the SSLServiceProvider and SSLCallback objects that you can use in PowerScript®. You can create your own callback implementation by creating a standard custom class user object inherited from the SSLCallback object and implement the callback functions you need.
For more information on using these APIs, see the Application Techniques manual in the PowerBuilder documentation.
|Copyright © 2005. Sybase Inc. All rights reserved.|