TimestampInfo Type
A container for timestamp information.
Remarks
The TimestampInfo object contains details of a third-party timestamp and the outcome of its validation.
Fields
|
|
Accuracy long |
This field indicates the accuracy of the included time mark, in microseconds.
|
Bytes byte[] |
Returns raw timestamp data in DER format.
|
ChainValidationDetails int |
The details of a certificate chain validation outcome. They may often suggest what reasons that contributed to the overall validation result.
Returns a bit mask of the following options:
| | | cvrBadData | 0x0001 | One or more certificates in the validation path are malformed
| | cvrRevoked | 0x0002 | One or more certificates are revoked
| | cvrNotYetValid | 0x0004 | One or more certificates are not yet valid
| | cvrExpired | 0x0008 | One or more certificates are expired
| | cvrInvalidSignature | 0x0010 | A certificate contains a non-valid digital signature
| | cvrUnknownCA | 0x0020 | A CA certificate for one or more certificates has not been found (chain incomplete)
| | cvrCAUnauthorized | 0x0040 | One of the CA certificates are not authorized to act as CA
| | cvrCRLNotVerified | 0x0080 | One or more CRLs could not be verified
| | cvrOCSPNotVerified | 0x0100 | One or more OCSP responses could not be verified
| | cvrIdentityMismatch | 0x0200 | The identity protected by the certificate (a TLS endpoint or an e-mail addressee) does not match what is recorded in the certificate
| | cvrNoKeyUsage | 0x0400 | A mandatory key usage is not enabled in one of the chain certificates
| | cvrBlocked | 0x0800 | One or more certificates are blocked
| | cvrFailure | 0x1000 | General validation failure
| | cvrChainLoop | 0x2000 | Chain loop: one of the CA certificates recursively signs itself
| | cvrWeakAlgorithm | 0x4000 | A weak algorithm is used in one of certificates or revocation elements
| | cvrUserEnforced | 0x8000 | The chain was considered invalid following intervention from a user code
|
|
ChainValidationResult int |
The outcome of a certificate chain validation routine.
Available options:
| | | cvtValid | 0 | The chain is valid
| | cvtValidButUntrusted | 1 | The chain is valid, but the root certificate is not trusted
| | cvtInvalid | 2 | The chain is not valid (some of certificates are revoked, expired, or contain an invalid signature)
| | cvtCantBeEstablished | 3 | The validity of the chain cannot be established because of missing or unavailable validation information (certificates, CRLs, or OCSP responses)
|
Use the ValidationLog property to access the detailed validation log.
|
HashAlgorithm String |
Returns the timestamp's hash algorithm
| | | SB_HASH_ALGORITHM_SHA1 | SHA1 | | | SB_HASH_ALGORITHM_SHA224 | SHA224 | | | SB_HASH_ALGORITHM_SHA256 | SHA256 | | | SB_HASH_ALGORITHM_SHA384 | SHA384 | | | SB_HASH_ALGORITHM_SHA512 | SHA512 | | | SB_HASH_ALGORITHM_MD2 | MD2 | | | SB_HASH_ALGORITHM_MD4 | MD4 | | | SB_HASH_ALGORITHM_MD5 | MD5 | | | SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | | | SB_HASH_ALGORITHM_CRC32 | CRC32 | | | SB_HASH_ALGORITHM_SSL3 | SSL3 | | | SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | | | SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | | | SB_HASH_ALGORITHM_POLY1305 | POLY1305 | | | SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | | | SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | | | SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | | | SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | | | SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | | | SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | | | SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | | | SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | | | SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | | | SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | | | SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | | | SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | | | SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | | | SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | | | SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | | | SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN | |
|
SerialNumber byte[] |
Returns the timestamp's serial number.
|
Time String |
The time point incorporated into the timestamp.
|
TimestampType int |
Returns the timestamp type.
Available options:
| | | tstUnknown | 0 | | | tstLegacy | 1 | Supported by: AuthenticodeVerifier
| | tstTrusted | 2 | Supported by: AuthenticodeVerifier
| | tstGeneric | 3 | Supported by: CAdESVerifier
| | tstESC | 4 | Supported by: CAdESVerifier
| | tstContent | 5 | Supported by: CAdESVerifier
| | tstCertsAndCRLs | 6 | Supported by: CAdESVerifier
| | tstArchive | 7 | Archive timestamp. Supported by: CAdESVerifier, OfficeVerifier, SOAPVerifier, XAdESVerifier
| | tstArchive2 | 8 | Archive v2 timestamp. Supported by: CAdESVerifier
| | tstArchive3 | 9 | Archive v3 timestamp. Supported by: CAdESVerifier
| | tstIndividualDataObjects | 10 | Supported by: OfficeVerifier, SOAPVerifier, XAdESVerifier
| | tstAllDataObjects | 11 | Supported by: OfficeVerifier, SOAPVerifier, XAdESVerifier
| | tstSignature | 12 | Signature timestamp. Supported by: OfficeVerifier, SOAPVerifier, XAdESVerifier
| | tstRefsOnly | 13 | RefsOnly timestamp. Supported by: OfficeVerifier, SOAPVerifier, XAdESVerifier
| | tstSigAndRefs | 14 | SigAndRefs timestamp. Supported by: OfficeVerifier, SOAPVerifier, XAdESVerifier
|
|
TSAName String |
This value uniquely identifies the Timestamp Authority (TSA).
This property provides information about the entity that manages the TSA.
|
ValidationLog String |
Contains the TSA certificate chain validation log.
This information is extremely useful if the timestamp validation fails.
|
ValidationResult int |
Contains timestamp validation outcome.
Use this property to check the result of the most recent timestamp validation.
| | | svtValid | 0 | The signature is valid
| | svtUnknown | 1 | Signature validity is unknown
| | svtCorrupted | 2 | The signature is corrupted
| | svtSignerNotFound | 3 | Failed to acquire the signing certificate. The signature cannot be validated.
| | svtFailure | 4 | General failure
|
|
Constructors
public TimestampInfo();
Creates a new TimestampInfo object with default field values.