verify


Description:

public bool verify () throws Error

Validates the connection and all its settings.

Each setting's properties have allowed values, and some values are dependent on other values. For example, if a Wi-Fi connection is security enabled, the SettingWireless setting object's 'security' property must contain the setting name of the SettingWirelessSecurity object, which must also be present in the connection for the connection to be valid. As another example, the SettingWired object's 'mac-address' property must be a validly formatted MAC address. The returned Error contains information about which setting and which property failed validation, and how it failed validation.

Parameters:

this

the Connection to verify

Returns:

true if the connection is valid, false if it is not