Discuss this help topic in SecureBlackbox Forum

TElFileCertStorage.Validate

TElFileCertStorage     See also     


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


Validates the certificate using certificate storage

Declaration

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

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

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

[Java]
    TElCertificateValidityInfo validate(TElX509Certificate Certificate, boolean CheckCACertDates, Date 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 - ...

Values

Return value

    Returns the certificate validity status.

Possible values:

Description

    Use this method to validate the server certificate. TElFileCertStorage validates the certificate using external file certificate storage specified by FileName property.

See also:     FileName    

Discuss this help topic in SecureBlackbox Forum