 | BouncyCastleCertificateExtensionsGetSubjectEmailAddress Method |
Get the subject email address of the certificate.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic static string GetSubjectEmailAddress(
this X509Certificate certificate,
bool idnEncode = false
)
Parameters
- certificate X509Certificate
- The certificate.
- idnEncode Boolean (Optional)
- If set to , international edomain names will be IDN encoded.
Return Value
StringThe subject email address.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
X509Certificate. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
Remarks
The email address component of the certificate's Subject identifier is
sometimes used as a way of looking up certificates for a particular
user if a fingerprint is not available.
See Also