PTEmbeddedTimestampVerificationResult
@interface PTEmbeddedTimestampVerificationResult : NSObject
This class represents the result of verifying a secure embedded timestamp digital signature.
-
Retrieves the main verification status. The main status is determined based on the other statuses.
Declaration
Objective-C
- (BOOL)GetVerificationStatus;
Swift
func getVerificationStatus() -> Bool
Return Value
A boolean representing whether or not the verification operation was completely successful.
-
Retrieves the result condition associated with the CMS signed digest verification step.
Declaration
Objective-C
- (PTVerificationResultDigestStatus)GetCMSDigestStatus;
Swift
func getCMSDigestStatus() -> PTVerificationResultDigestStatus
Return Value
A DigestStatus-type enumeration value.
-
Retrieves the result condition associated with the message imprint digest verification step.
Declaration
Objective-C
- (PTVerificationResultDigestStatus)GetMessageImprintDigestStatus;
Swift
func getMessageImprintDigestStatus() -> PTVerificationResultDigestStatus
Return Value
A DigestStatus-type enumeration value.
-
Retrieves the result condition associated with the trust verification step.
Declaration
Objective-C
- (PTVerificationResultTrustStatus)GetTrustStatus;
Swift
func getTrustStatus() -> PTVerificationResultTrustStatus
Return Value
A TrustStatus-type enumeration value.
-
Retrieves the result condition associated with the CMS signed digest verification step, as a descriptive string.
Note
Output may change in future versions.
Declaration
Objective-C
- (NSString *)GetCMSDigestStatusAsString;
Swift
func getCMSDigestStatusAsString() -> String!
Return Value
a string
-
Retrieves the result condition associated with the message imprint digest verification step, as a descriptive string.
Note
Output may change in future versions.
Declaration
Objective-C
- (NSString *)GetMessageImprintDigestStatusAsString;
Swift
func getMessageImprintDigestStatusAsString() -> String!
Return Value
a string
-
Retrieves the result condition associated with the trust verification step, as a descriptive string.
Note
Output may change in future versions.
Declaration
Objective-C
- (NSString *)GetTrustStatusAsString;
Swift
func getTrustStatusAsString() -> String!
Return Value
a string
-
Returns whether there is a detailed TrustVerificationResult in this EmbeddedTimestampVerificationResult.
Declaration
Objective-C
- (BOOL)HasTrustVerificationResult;
Swift
func hasTrust() -> Bool
Return Value
A boolean
-
Retrieves the detailed result associated with the trust step of the verification operation that returned this EmbeddedTimestampVerificationResult, if such a detailed trust result is available. Must call HasTrustVerificationResult first and check for a true result.
Note
This function will throw if there is no trust result available.
Declaration
Objective-C
- (PTTrustVerificationResult *)GetTrustVerificationResult;
Swift
func getTrust() -> PTTrustVerificationResult!
Return Value
A TrustVerificationResult object.
-
Retrieves an enumeration value representing the digest algorithm used to sign the timestamp token.
Declaration
Objective-C
- (PTDigestAlgorithmType)GetCMSSignatureDigestAlgorithm;
Swift
func getCMSSignatureDigestAlgorithm() -> PTDigestAlgorithmType
Return Value
A DigestAlgorithm enumeration value.
-
Retrieves an enumeration value representing the digest algorithm used inside the message imprint field of the timestamp to digest the main signature value.
Declaration
Objective-C
- (PTDigestAlgorithmType)GetMessageImprintDigestAlgorithm;
Swift
func getMessageImprintDigestAlgorithm() -> PTDigestAlgorithmType
Return Value
A DigestAlgorithm enumeration value.
-
Retrieves reports about unsupported features encountered during verification of the timestamp. Current possible values: “GeneralizedTime format with length
”, “unsupported digest algorithm” Note
Output may change in future versions.
Declaration
Objective-C
- (NSArray<NSString *> *)GetUnsupportedFeatures;
Swift
func getUnsupportedFeatures() -> [String]!
Return Value
a container of strings representing unsupported features encountered during verification of the timestamp
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()