| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Properties | ||||
CamelNetworkSettings; enum CamelNetworkSecurityMethod; CamelNetworkSecurityMethod camel_network_settings_get_security_method (CamelNetworkSettings *settings); void camel_network_settings_set_security_method (CamelNetworkSettings *settings,CamelNetworkSecurityMethod method);
typedef enum {
CAMEL_NETWORK_SECURITY_METHOD_NONE,
CAMEL_NETWORK_SECURITY_METHOD_SSL_ON_ALTERNATE_PORT,
CAMEL_NETWORK_SECURITY_METHOD_STARTTLS_ON_STANDARD_PORT
} CamelNetworkSecurityMethod;
Methods for establishing an encrypted (or unencrypted) network connection.
| Use an unencrypted network connection. | |
| Use SSL by connecting to an alternate port number. | |
| Use SSL or TLS by connecting to the standard port and invoking STARTTLS before authenticating. This is the recommended method. |
Since 3.2
CamelNetworkSecurityMethod camel_network_settings_get_security_method
(CamelNetworkSettings *settings);
Returns the method used to establish a secure (or unsecure) network connection.
|
a CamelNetworkSettings |
Returns : |
the security method |
Since 3.2
void camel_network_settings_set_security_method (CamelNetworkSettings *settings,CamelNetworkSecurityMethod method);
Sets the method used to establish a secure (or unsecure) network connection. Note that changing this setting has no effect on an already-established network connection.
|
a CamelNetworkSettings |
|
the security method |
Since 3.2
"security-method" property"security-method" CamelNetworkSecurityMethod : Read / Write / Construct
Method used to establish a network connection.
Default value: CAMEL_NETWORK_SECURITY_METHOD_STARTTLS_ON_STANDARD_PORT