EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCMSSignature.Validate

TElCMSSignature     See also    


 

This method validates the signature.

 
 

Declaration

[C#]
    TSBCMSSignatureValidity Validate();
    TSBCMSAdvancedSignatureValidity Validate(TSBCMSValidationOptions Options);
    TSBCMSAdvancedSignatureValidity Validate(TElX509CertificateValidator Validator, TSBCMSValidationOptions Options);

    TSBCMSValidationOptions represents a bit mask which contains zero or more bit flags as defined by TSBCMSValidationOption.

[VB.NET]
    Function Validate() As TSBCMSSignatureValidity
    Function Validate(ByVal Options As TSBCMSValidationOptions) As TSBCMSAdvancedSignatureValidity
    Function Validate(ByVal Validator As TElX509CertificateValidator, ByVal Options As TSBCMSValidationOptions) As TSBCMSAdvancedSignatureValidity

    TSBCMSValidationOptions represents a bit mask which contains zero or more bit flags as defined by TSBCMSValidationOption.

[Pascal]
    function Validate : TSBCMSSignatureValidity;
    function Validate(Options : TSBCMSValidationOptions) : TSBCMSAdvancedSignatureValidity;
    function Validate(Validator : TElX509CertificateValidator; Options : TSBCMSValidationOptions) : TSBCMSAdvancedSignatureValidity;

    TSBCMSValidationOptions = set of TSBCMSValidationOption;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

Parameters

  • Validator - reference to the TElX509CertificateValidator object which will be used for validation
  • Options - signature validation options
 
 

Possible SBCMSSignatureValidity values:

[.NET] [Pascal] Description
csvValid = 0 csvValid signature is valid
csvInvalid = 1 csvInvalid signature is invalid
csvSignerNotFound = 2 csvSignerNotFound signer not found
csvGeneralFailure = 3 csvGeneralFailure general failure
[.NET] [Pascal]
Namespace: SBPKICommon
Assembly: SecureBlackbox
Unit: SBPKICommon

 
 

Possible SBCMSAdvancedSignatureValidity values:

[.NET] [Pascal] Description
casvValid = 0 casvValid signature is valid
casvSignatureCorrupted = 1 casvSignatureCorrupted signature is corrupted
casvSignerNotFound = 2 casvSignerNotFound signer not found
casvIncompleteChain = 3 casvIncompleteChain certificate chain is incomplete
casvBadCountersignature = 4 casvBadCountersignature countersignature is invalid
casvBadTimestamp = 5 casvBadTimestamp bad timestamp
casvCertificateExpired = 6 casvCertificateExpired certificate was expired
casvCertificateRevoked = 7 casvCertificateRevoked certificate was revoked
casvCertificateCorrupted = 8 casvCertificateCorrupted corrupted certificate
casvUntrustedCA = 9 casvUntrustedCA untrusted Certificate Authority
casvRevInfoNotFound = 10 casvRevInfoNotFound revocation info was not found
casvTimestampInfoNotFound = 11 casvTimestampInfoNotFound timestamp info was not found
casvFailure = 12 casvFailure general failure
casvUnknown = 13 casvUnknown unknown validity
[.NET] [Pascal]
Namespace: SBPKICommon
Assembly: SecureBlackbox
Unit: SBPKICommon

 
 

Possible SBCMSValidationOption values:

[.NET] [Pascal] Description
1 cvoRecursiveValidation if this flag is enabled, recursive validation is used.
2 cvoValidateChains if this flag is enabled, whole certificate chains will be validated.
4 cvoValidateTimes if this flag is enabled, timestamps will be validated.
8 cvoCheckRevocationStatus if this flag is enabled, revocation information will be checked.
16 cvoRequireTimestamps if this option is enabled, timestamps are required for successfull validation.
32 cvoIgnoreLocalTimestamps if this option is enabled, local timestampts will be ignored.
64 cvoValidateTrusts if this option is enabled, trusts will be validated.
Declared in
[.NET] [Pascal]
Namespace: SBCMS
Assembly: SecureBlackbox.PKI
Unit: SBCMS

 
 

Return value

    Returns signature validity status.

 
 

Description

    Use this method to validate the signature.

    Note, if the third overload of this method is used, cvoValidateTrusts and cvoCheckRevocationStatus validation options are ignored. The corresponding trust and revocation validation settings should be adjusted via the properties of TElX509CertificateValidator class.

 
 

See also:     LastValidationResult     Sign    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation