Class DigitalCredentialsModule
- Namespace
- WebDriverBiDi.DigitalCredentials
- Assembly
- WebDriverBiDi.dll
The DigitalCredentials module contains commands relating to digital credentials as defined in the W3C Digital Credentials specification (https://www.w3.org/TR/digital-credentials/).
public sealed class DigitalCredentialsModule : Module
- Inheritance
-
DigitalCredentialsModule
- Inherited Members
Constructors
DigitalCredentialsModule(IBiDiModuleHost)
Initializes a new instance of the DigitalCredentialsModule class.
public DigitalCredentialsModule(IBiDiModuleHost driver)
Parameters
driverIBiDiModuleHostThe IBiDiModuleHost used in the module commands and events.
Fields
DigitalCredentialsModuleName
The name of the digitalCredentials module.
public const string DigitalCredentialsModuleName = "digitalCredentials"
Field Value
Properties
ModuleName
Gets the module name.
public override string ModuleName { get; }
Property Value
Methods
SetVirtualWalletBehaviorAsync(SetVirtualWalletBehaviorCommandParameters, TimeSpan?, CancellationToken)
Sets the behavior of the virtual wallet holding the digital credentials.
public Task<SetVirtualWalletBehaviorCommandResult> SetVirtualWalletBehaviorAsync(SetVirtualWalletBehaviorCommandParameters commandParameters, TimeSpan? timeoutOverride = null, CancellationToken cancellationToken = default)
Parameters
commandParametersSetVirtualWalletBehaviorCommandParametersThe parameters for the command.
timeoutOverrideTimeSpan?The timeout override to use for the command. If omitted, the value of DefaultCommandTimeout is used.
cancellationTokenCancellationTokenA cancellation token used to propagate notification that the operation should be canceled. Omitting this argument is the equivalent of using None.
Returns
- Task<SetVirtualWalletBehaviorCommandResult>
An empty command result.
Exceptions
- ArgumentNullException
Thrown when
commandParametersis null.- ArgumentOutOfRangeException
Thrown when
timeoutOverrideis negative (other than InfiniteTimeSpan) or exceeds the maximum supported timer duration.- WebDriverBiDiCommandException
Thrown when the remote end returns an error response for the command.
- WebDriverBiDiSerializationException
Thrown when the command parameters cannot be serialized, or the response cannot be deserialized.
- WebDriverBiDiTimeoutException
Thrown when the command does not complete within the timeout.
- WebDriverBiDiConnectionException
Thrown when the driver is not connected to a remote end, or the connection is lost before the command completes.
- WebDriverBiDiException
Thrown when the command is canceled, or its response carries no result or a result of the wrong type.
- OperationCanceledException
Thrown when
cancellationTokenis canceled.- ObjectDisposedException
Thrown when the driver has been disposed.