PTTrustVerificationResult

@interface PTTrustVerificationResult : NSObject

The detailed result of a trust verification step of a verification operation performed on a digital signature.

  • Retrieves the trust verification status.

    Declaration

    Objective-C

    - (BOOL)WasSuccessful;

    Swift

    func wasSuccessful() -> Bool

    Return Value

    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.

  • Retrieves a string representation of the details of the trust verification status.

    Note

    Output may change in future versions.

    Declaration

    Objective-C

    - (NSString *)GetResultString;

    Swift

    func getString() -> String!

    Return Value

    A string.

  • Retrieves the reference-time used for trust verification as an epoch time.

    Declaration

    Objective-C

    - (long long)GetTimeOfTrustVerification;

    Swift

    func getTimeOfTrustVerification() -> Int64

    Return Value

    An integral value representing an epoch time.

  • Retrieves the type of reference-time used for trust verification.

    Declaration

    Objective-C

    - (PTVerificationOptionsTimeMode)GetTimeOfTrustVerificationEnum;

    Swift

    func getTimeOfTrustVerificationEnum() -> PTVerificationOptionsTimeMode

    Return Value

    An enumerated value representing the type of reference-time used for trust verification.

  • Returns whether this TrustVerificationResult has a detailed timestamp result inside.

    Declaration

    Objective-C

    - (BOOL)HasEmbeddedTimestampVerificationResult;

    Swift

    func hasEmbeddedTimestampVerificationResult() -> Bool

    Return Value

    a boolean value representing whether this TrustVerificationResult has a detailed timestamp result inside.

  • Returns the detailed timestamp result inside this TrustVerificationResult. One must call HasEmbeddedTimestampVerificationResult first to check whether the result is available.

    Declaration

    Objective-C

    - (PTEmbeddedTimestampVerificationResult *)
        GetEmbeddedTimestampVerificationResult;

    Swift

    func getEmbeddedTimestampVerificationResult() -> PTEmbeddedTimestampVerificationResult!

    Return Value

    an EmbeddedTimestampVerificationResult object.

  • Retrieves the certificate path that was used for verification.

    Declaration

    Objective-C

    - (NSArray<PTX509Certificate *> *)GetCertPath;

    Swift

    func getCertPath() -> [PTX509Certificate]!

    Return Value

    a container of X509Certificate objects

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()