Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.Validate

TElCustomCertStorage     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Validate given certificate

Declaration

[VB.NET]
    Function Validate(ByVal Certificate As TElX509Certificate, ByRef Reason As TSBCertificateValidityReason, ByVal ValidityMoment As DateTime) As TSBCertificateValidity
    Function Validate(ByVal Certificate As TElX509Certificate, ByRef Reason As TSBCertificateValidityReason, ByVal CheckCACertDates As Boolean, ByVal ValidityMoment As DateTime) As TSBCertificateValidity

[Pascal]
    function Validate(Certificate : TElX509Certificate; var Reason : TSBCertificateValidityReason; ValidityMoment : TDateTime = 0) : TSBCertificateValidity;
    function Validate(Certificate : TElX509Certificate; var Reason : TSBCertificateValidityReason; CheckCACertDates : boolean; ValidityMoment : TDateTime = 0) : TSBCertificateValidity;

[PHP]
    integer Validate(TElX509Certificate $Certificate, integer &$Reason, DateTime $ValidityMoment)
    integer Validate(TElX509Certificate $Certificate, integer &$Reason, bool $CheckCACertDates, DateTime $ValidityMoment)

Parameters

  • Certificate - Certificate object, initialized by LoadFromBuffer method
  • Validity - (out) certificate validity
  • Reason - (out) certificate validity parameters.
  • ValidityMoment - Time to check validity period against. Default value of 0 means "check current moment"
  • CheckCACertDates - When this parameter is False, time specified in ValidityMoment is checked against validity period of the certificate being validated only.
    When CheckCACertDates is True, validity periods of all certificates in the chain are questioned.
    Default value is False.

Values


Return value

    Returns certificate validity.

Possible values:


Description

    This method uses CRL property for certificate validation when this property is specified.
    Do not use this method directly. Use the same method of the derived classes TElWinCertStorage, TElMemoryCertStorage and TElFileCertStorage .

See also:     CRL    

Discuss this help topic in SecureBlackbox Forum