Discuss this help topic in SecureBlackbox Forum

TElX509CertificateChain.Validate

TElX509CertificateChain     See also     


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


Validates the certificate chain.

Declaration

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

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

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

Parameters

  • Reason - certificate invalidity reason
  • ValidityMoment - moment for which the validity must be checked
  • 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 the certificate validity.

Possible values:


Description

    Use this method to validate a completed certificate chain. In a case when the chain is invalid, parameter Reason contains the invalidity reason.

See also:     SBCertificateValidity     SBCertificateValidityReason    

Discuss this help topic in SecureBlackbox Forum