CamelNetworkSettings

## CamelNetworkSettings CamelNetworkSettings |

## Synopsis

                        CamelNetworkSettings;
    enum                CamelNetworkSecurityMethod;
    CamelNetworkSecurityMethod camel_network_settings_get_security_method
                                                            (CamelNetworkSettings *settings);
    void                camel_network_settings_set_security_method
                                                            (CamelNetworkSettings *settings,
                                                             CamelNetworkSecurityMethod method);

## Object Hierarchy

      GInterface
       +----CamelNetworkSettings

## Prerequisites

CamelNetworkSettings requires CamelSettings.

## Properties

      "security-method"          CamelNetworkSecurityMethod  : Read / Write / Construct

## Description

## Details

### CamelNetworkSettings

    typedef struct _CamelNetworkSettings CamelNetworkSettings;

Since 3.2

### enum CamelNetworkSecurityMethod

    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.

`CAMEL_NETWORK_SECURITY_METHOD_NONE` | Use an unencrypted network connection.
`CAMEL_NETWORK_SECURITY_METHOD_SSL_ON_ALTERNATE_PORT` | Use SSL by connecting to an alternate port number.
`CAMEL_NETWORK_SECURITY_METHOD_STARTTLS_ON_STANDARD_PORT` | Use SSL or TLS by connecting to the standard port and invoking STARTTLS before authenticating. This is the recommended method.

Since 3.2

### camel_network_settings_get_security_method ()

    CamelNetworkSecurityMethod camel_network_settings_get_security_method
                                                            (CamelNetworkSettings *settings);

Returns the method used to establish a secure (or unsecure) network connection.

`settings` : | a CamelNetworkSettings
Returns : | the security method

Since 3.2

### camel_network_settings_set_security_method ()

    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.

`settings` : | a CamelNetworkSettings
`method` : | the security method

Since 3.2

## Property Details

### The `"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