Skip to content

QuantumGate::Local::SetSecurityLevel

Karel Donk edited this page Dec 30, 2019 · 5 revisions

Sets the security level for the instance. See Security Levels for more details on QuantumGate security levels.

Signature

Result<> SetSecurityLevel(const SecurityLevel level,
    const std::optional<SecurityParameters>& params = std::nullopt) noexcept;

Parameters

Name Description
level The QuantumGate::SecurityLevel to set for the instance. See QuantumGate Types for more details.
params The optional QuantumGate::SecurityParameters to set for the instance when the level parameter is QuantumGate::SecurityLevel::Custom.

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::Failed The operation failed.
QuantumGate::ResultCode::InvalidArgument The operation failed because invalid arguments were passed in for the function.
Clone this wiki locally