Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PemEncoding.FindUtf8(ReadOnlySpan<Byte>) Method
Definition
- Namespace:
- System.Security.Cryptography
- Assembly:
- System.Security.Cryptography.dll
- Source:
- PemEncoding.cs
- Source:
- PemEncoding.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the first PEM-encoded data.
public:
static System::Security::Cryptography::PemFields FindUtf8(ReadOnlySpan<System::Byte> pemData);
public static System.Security.Cryptography.PemFields FindUtf8(ReadOnlySpan<byte> pemData);
static member FindUtf8 : ReadOnlySpan<byte> -> System.Security.Cryptography.PemFields
Public Shared Function FindUtf8 (pemData As ReadOnlySpan(Of Byte)) As PemFields
Parameters
- pemData
- ReadOnlySpan<Byte>
The text containing the PEM-encoded data.
Returns
A value that specifies the location, label, and data location of the encoded data.
Exceptions
pemData does not contain a well-formed PEM-encoded value.
Remarks
IETF RFC 7468 permits different decoding rules. This method always uses lax rules.
This does not validate the UTF-8 data outside of encapsulation boundaries and is ignored. It is the caller's responsibility to ensure the entire input is UTF-8 if required.
Applies to
Feedback
Was this page helpful?
