GetGlobalProperty PowerScript function
Description
Returns the value of an SSL global property. This function
is used by PowerBuilder clients connecting to EAServer.
Controls
SSLServiceProvider object
Syntax
|
1 |
<span>sslserviceprovider</span>.<span>GetGlobalProperty</span> ( <span>property, </span><span>values</span>) |
|
Argument |
Description |
|---|---|
|
sslserviceprovider |
Reference to the SSLServiceProvider service |
|
property |
The name of the SSL property for which For a complete list of supported SSL properties, see your EAServer documentation or the |
|
values |
An array of string values for the specified |
Return Values
Long. Returns one of the following values:
-
0 Success
-
-1 Unknown property
-
-3 Property has no value
-
-10 An EAServer or
SSL failure has occurred -
-11 Bad argument list
Usage
The GetGlobalProperty function allows PowerBuilder clients
that connect to EAServer through
SSL to access global SSL properties.
Any properties set using the SSLServiceProvider interface
are global to all connections made by the client to all EAServer servers. You can override
any of the global settings at the connection level by specifying
them as options to the Connection object or JaguarORB object.
Only clients can get and set SSL properties. Server components
do not have permission to use the SSLServiceProvider service.
Examples
The following example shows the use of the GetGlobalProperty function
to get the value of the sessLingerTime property:
|
1 |
SSLServiceProvider ssl |
|
1 |
string ls_values[] |
|
1 |
long rc |
|
1 |
... |
|
1 |
this.GetContextService("SSLServiceProvider", ssl) |
|
1 |
rc = ssl.<span>GetGlobalProperty</span>("sessLingerTime", ls_values) |
|
1 |
... |