Class TrustVerificationResult
The detailed result of a trust verification step of a verification operation performed on a digital signature.
Implements
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFTronDotNet.dll
Syntax
public class TrustVerificationResult : IDisposable
Constructors
TrustVerificationResult(IntPtr)
Declaration
public TrustVerificationResult(IntPtr impl_ptr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | impl_ptr |
Methods
Destroy()
Declaration
public void Destroy()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
~TrustVerificationResult()
Declaration
protected ~TrustVerificationResult()
GetCertPath()
Retrieves the certificate path that was used for verification.
Declaration
public X509Certificate[] GetCertPath()
Returns
Type | Description |
---|---|
X509Certificate[] | a container of X509Certificate objects |
GetEmbeddedTimestampVerificationResult()
Returns the detailed timestamp result inside this TrustVerificationResult. One must call HasEmbeddedTimestampVerificationResult first to check whether the result is available.
Declaration
public EmbeddedTimestampVerificationResult GetEmbeddedTimestampVerificationResult()
Returns
Type | Description |
---|---|
EmbeddedTimestampVerificationResult | an EmbeddedTimestampVerificationResult object |
GetResultString()
Retrieves a string representation of the details of the trust verification status.
Declaration
public string GetResultString()
Returns
Type | Description |
---|---|
string | A string |
Remarks
Output may change in future versions.
GetTimeOfTrustVerification()
Retrieves the reference-time used for trust verification as an epoch time.
Declaration
public long GetTimeOfTrustVerification()
Returns
Type | Description |
---|---|
long | An integral value representing an epoch time |
GetTimeOfTrustVerificationEnum()
Retrieves the type of reference-time used for trust verification.
Declaration
public VerificationOptions.TimeMode GetTimeOfTrustVerificationEnum()
Returns
Type | Description |
---|---|
VerificationOptions.TimeMode | An enumerated value representing the type of reference-time used for trust verification |
HasEmbeddedTimestampVerificationResult()
Returns whether this TrustVerificationResult has a detailed timestamp result inside.
Declaration
public bool HasEmbeddedTimestampVerificationResult()
Returns
Type | Description |
---|---|
bool | a boolean value representing whether this TrustVerificationResult has a detailed timestamp result inside |
WasSuccessful()
Retrieves the trust verification status.
Declaration
public bool WasSuccessful()
Returns
Type | Description |
---|---|
bool | A boolean representing whether or not the trust verification operation was successful. Whether trust-related warnings are treated as errors or not depend on the VerificationOptions used for the verification operation |