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 |
---|---|---|
System.IO.Stream | contents | The data to store, represented as a |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentException | The |
System.ArgumentOutOfRangeException | The input data was too long. |
System.InvalidOperationException | There is no |
MalformedYubiKeyResponseException | The YubiKey returned malformed data and authentication, either single or double, could not be performed. |
System.OperationCanceledException | The user canceled management key collection. |
System.Security.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.