OPC Studio User's Guide and Reference
FindRevokingCrlEntry Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.Cryptography.PkiCertificates Namespace > PkiCrlInfo Class : FindRevokingCrlEntry Method
PKI certificate info to be checked.

The value of this parameter cannot be null (Nothing in Visual Basic).

The date used for comparison with revocation dates.
Finds a CRL entry that revokes the given certificate info.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Function FindRevokingCrlEntry( _
   ByVal pkiCertificateInfo As PkiCertificateInfo, _
   ByVal checkDate As Date _
) As IPkiCrlEntry
'Usage
 
Dim instance As PkiCrlInfo
Dim pkiCertificateInfo As PkiCertificateInfo
Dim checkDate As Date
Dim value As IPkiCrlEntry
 
value = instance.FindRevokingCrlEntry(pkiCertificateInfo, checkDate)
[CanBeNull()]
public IPkiCrlEntry FindRevokingCrlEntry( 
   PkiCertificateInfo pkiCertificateInfo,
   DateTime checkDate
)
[CanBeNull()]
public:
IPkiCrlEntry^ FindRevokingCrlEntry( 
   PkiCertificateInfo^ pkiCertificateInfo,
   DateTime checkDate
) 

Parameters

pkiCertificateInfo
PKI certificate info to be checked.

The value of this parameter cannot be null (Nothing in Visual Basic).

checkDate
The date used for comparison with revocation dates.

Return Value

Returns the CRL entry that revokes the pkiCertificateInfo at the date/time given by checkDate, if there is one. Returns null if no such CRL entry is found.

This method can return null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also