TSKPinningValidatorResult

@interface TSKPinningValidatorResult : NSObject

A TSKPinningValidatorResult instance contains all the details regarding a pinning validation performed against a specific server.

  • The hostname of the server SSL pinning validation was performed against.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSString *serverHostname;

    Swift

    var serverHostname: String { get }
  • The result of validating the server’s certificate chain against the set of SSL pins configured for the notedHostname.

    Declaration

    Objective-C

    @property (readonly, nonatomic) TSKTrustEvaluationResult evaluationResult;

    Swift

    var evaluationResult: TSKTrustEvaluationResult { get }
  • The trust decision returned for this connection, which describes whether the connection should be blocked or allowed, based on the evaluationResult returned when evaluating the serverTrust and the SSL pining policy configured for this server.

    For example, the pinning validation could have failed (ie. evaluationResult being TSKTrustEvaluationFailedNoMatchingPin) but the policy might be set to ignore pinning validation failures for this server, thereby returning TSKTrustDecisionShouldAllowConnection.

    Declaration

    Objective-C

    @property (readonly, nonatomic) TSKTrustDecision finalTrustDecision;

    Swift

    var finalTrustDecision: TSKTrustDecision { get }
  • The time it took for the SSL pinning validation to be performed.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSTimeInterval validationDuration;

    Swift

    var validationDuration: TimeInterval { get }
  • The certificate chain sent by the server when establishing the connection as PEM-formatted certificates.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray *certificateChain;

    Swift

    var certificateChain: [Any] { get }