public class Security
extends java.lang.Object
Constructor and Description |
---|
Security() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCertificateStore() |
static boolean |
getNoHostVerify() |
static java.lang.String |
getProxyHost() |
static java.lang.String |
getProxyPassword() |
static int |
getProxyPort() |
static java.lang.String |
getProxyUserId() |
static void |
setCertificateStore(java.lang.String certStoreList) |
static void |
setNoHostVerify(boolean trueFalseState) |
static void |
setProxyHost(java.lang.String host) |
static void |
setProxyPassword(java.lang.String pwd) |
static void |
setProxyPort(int port) |
static void |
setProxyUserId(java.lang.String userId) |
public static void setProxyHost(java.lang.String host) throws Open4GLException
The setProxyHost() method will indicate that the HTTP protocol tunneling will take place through this HTTP proxy server. If a specific network port has not been set through the setProxyPort() method, the default HTTP port (80) will be used. If not specified, a HTTP proxy is not configured and used.
host
- is a String object specifying the DNS-name or dot-formatted IP
address of the HTTP proxy server Open4GLException
public static void setProxyPort(int port) throws Open4GLException
The setProxyPort() method will set the IP port number to use in conjunction with the proxy host name that was set with the setProxyHost() method.
NOTE: This parameter will be ignored until the setProxyHost() method has been called.
port
- is a postive int in the range of 3 to 65536 Open4GLException
public static void setCertificateStore(java.lang.String certStoreList) throws Open4GLException
The setCertificateStore() method will set the path used to locate the Root Digital Certificates used by the HTTP/S protocol for validating the HTTP/S server's identity. This path is a comma separated list that may contain one or more entries of:
The path search will take each entry and determine if it is a file (or directory). If it is, the file is loaded from disk. If not, the JVM CLASSPATH will be used to search for the entry, and if found it will be loaded as a resource.
Rules:
If this method is not called, the default is to search the CLASSPATH for the
manifest file provided in the standard certificate distribution stores
provided by Progress.
certStoreList
- is a String object holding the search path entries. If a
null or zero length string is passed, any previous entry
will be removed and the default applied. Open4GLException
public static java.lang.String getProxyHost()
The getProxyHost() method will return the HTTP proxy server used for http and http/s tunneling.
public static int getProxyPort()
The getProxyPort() method will return the IP port of the HTTP proxy server to use during http and http/s tunneling.
public static java.lang.String getCertificateStore()
The getCertificateStore() method will return the path used to search for Root Digital Certificates when using the http/s tunneling mode.
public static boolean getNoHostVerify()
public static void setNoHostVerify(boolean trueFalseState) throws Open4GLException
Set the HTTPS server domain checking option on or off
trueFalseState
- is a boolean holding the new state option Open4GLException
public static void setProxyUserId(java.lang.String userId) throws Open4GLException
The setProxyUserId() method will provide HTTP Basic logon authentication to a HTTP proxy server. If the corresponding setProxyPassword() method is not called, a blank ( "\0" ) password will be used.
userId
- is the user account to authenticate to on the HTTP proxy server
Open4GLException
public static void setProxyPassword(java.lang.String pwd) throws Open4GLException
The setProxyPassword() method will set password to use with the authentication user-id for the HTTP proxy server.
NOTE: This parameter will be defaulted to blank ( "\0" )
pwd
- is a String object. If supplied as null, a null terminated blank
string will be inserted. Open4GLException
public static java.lang.String getProxyUserId()
The getProxyUserId() method will return the user-id to use when connecting through a HTTP proxy server.
public static java.lang.String getProxyPassword()
The getProxyPort() method will return the password to send to the HTTP proxy server when connecting through one.