Discuss this help topic in SecureBlackbox Forum

TElX509CertificateChain.Validate

TElX509CertificateChain     See also     


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


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)

[Java]
    TSBCertificateValidity validate(int[] Reason, Date ValidityMoment);
    TElCertificateValidityInfo validate(boolean CheckCACertDates, Date ValidityMoment);
    TSBCertificateValidity validate(int[] Reason, boolean CheckCACertDates, Date ValidityMoment);
    TElCertificateValidityInfo validate(Date 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