Class Verification

  • NSObject

    • Verification

Verification

A Verification object contains result of a gateway’s attempt to verify one of the signatures on signed data. The gateway verify methods return an array of Verification objects, one for each signature in the data. The Verification object provides information on whether the signature was cryptographically valid, whether the identity of the signature’s owner is known as a contact, and other attributes.

Applications should use the information provided to implement logic about whether to accept the data and how to handle errors.


Constructors

The Verification object should not be instantiated directly by the developer, as it is instantiated and returned by gateway cryptographic verification methods.


Instance Methods

Return Type Method and Description

NSNumber

isVerified :(NSError **) error

Determines whether data’s signature was cryptographically verified with the public key specified in a signed data structure..

bool

(BOOL) signerIsKnown :(NSError **) error

Determines whether data’s signature public key is contained in a locally stored keychain of either either an internal persona or a previously paired contact.

Facade

getFacade :(NSError **) error

Get the facade that is associated internally with the data’s public key. The data’s public key (or a reference to it) is included in the signed data string.

NSNumber

getTimestamp :(NSError **) error

The time the signature was added to the signed data, expressed in milliseconds since Jan 1, 1970.

String

` open func getSignature() throws → String`

Gets the signature associated with the Verification.

String

open func getPublicKey() throws → String

Gets the public key associated with the Verification.

String

open func getPublicKeyId() throws → String

Gets the public key ID associated with the Verification.

NSNumber

open func isApproval() throws → NSNumber

Determines if the Verification represents an approval or not.


Thread Safety

This class is fully thread-safe; any of its methods may be invoked in multiple threads concurrently.