X509Certificate2ExtensionsVerifyCertificateBySMimeA Method
Verifies a S/MIME certificate using SMIMEA DNS records.
Namespace: ARSoft.Tools.NetAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
public static bool VerifyCertificateBySMimeA(
this X509Certificate2 certificate,
string? mailAddress = null,
X509Chain? chain = null,
IDnsSecResolver? resolver = null
)
<ExtensionAttribute>
Public Shared Function VerifyCertificateBySMimeA (
certificate As X509Certificate2,
Optional mailAddress As String = Nothing,
Optional chain As X509Chain = Nothing,
Optional resolver As IDnsSecResolver = Nothing
) As Boolean
public:
[ExtensionAttribute]
static bool VerifyCertificateBySMimeA(
X509Certificate2^ certificate,
String^ mailAddress = nullptr,
X509Chain^ chain = nullptr,
IDnsSecResolver^ resolver = nullptr
)
[<ExtensionAttribute>]
static member VerifyCertificateBySMimeA :
certificate : X509Certificate2 *
?mailAddress : string *
?chain : X509Chain *
?resolver : IDnsSecResolver
(* Defaults:
let _mailAddress = defaultArg mailAddress null
let _chain = defaultArg chain null
let _resolver = defaultArg resolver null
*)
-> bool
- certificate X509Certificate2
- The certificate to be verified.
- mailAddress String (Optional)
-
The mail address which should be verified. If null is specified, the mail address of the
certificate will be used.
- chain X509Chain (Optional)
- The certificate chain which should be used for verification.
- resolver IDnsSecResolver (Optional)
-
The DNSSec resolver which should be used to resolve the SMIMEA dns records. If null is
specified, a self validating stub resolver will be used.
Booleantrue, of the certificate can be verified by SMIMEA dns records; otherwise, falseIn Visual Basic and C#, you can call this method as an instance method on any object of type
X509Certificate2. 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).