@rest_initialiser(version_check=True)
def execute(self, opts):
    if (sum([opts.get, opts.set]) != 1):
        _exit_if_errors(['Provided either --set or --get.'])
    if opts.get:
        (val, err) = self.rest.get_security_settings()
        _exit_if_errors(err)
        print(json.dumps(val))
    elif opts.set:
        self._set(self.rest, opts.disable_http_ui, opts.cluster_encryption_level, opts.tls_min_version, opts.tls_honor_cipher_order, opts.cipher_suites, opts.disable_www_authenticate)
@rest_initialiser(version_check=True)
def execute(self, opts):
    if (sum([opts.get, opts.set]) != 1):
        _exit_if_errors(['Provided either --set or --get.'])
    if opts.get:
        (val, err) = self.rest.get_security_settings()
        _exit_if_errors(err)
        print(json.dumps(val))
    elif opts.set:
        self._set(self.rest, opts.disable_http_ui, opts.cluster_encryption_level, opts.tls_min_version, opts.tls_honor_cipher_order, opts.cipher_suites, opts.disable_www_authenticate)