WriteMsrootsStream Method
WriteMsrootsStream(Stream)
Write contents
to the MSROOTS data objects. This will replace
any data already stored in the MSROOTS data objects.
public void WriteMsrootsStream(Stream contents)
Parameters
Type | Name | Description |
---|---|---|
Stream | contents | The data to store, represented as a |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentException | The |
ArgumentOutOfRangeException | The input data was too long. |
InvalidOperationException | There is no |
MalformedYubiKeyResponseException | The YubiKey returned malformed data and authentication, either single or double, could not be performed. |
OperationCanceledException | The user canceled management key collection. |
SecurityException | Mutual authentication was performed and the YubiKey was not authenticated. |
Remarks
This is the same as WriteMsroots(ReadOnlySpan<byte>) except the contents are provided as a Stream.