interimValidationResult (property)
Contains the validation status of the moment.
Syntax
@property (nonatomic,readwrite,assign,getter=interimValidationResult,setter=setInterimValidationResult:) int interimValidationResult; - (int)interimValidationResult; - (void)setInterimValidationResult:(int)newInterimValidationResult;
/* Possible Values */
CVT_VALID(0),
CVT_VALID_BUT_UNTRUSTED(1),
CVT_INVALID(2),
CVT_CANT_BE_ESTABLISHED(3)
public var interimValidationResult: CertificatevalidatorInterimValidationResults { get {...}
set {...} }
public enum CertificatevalidatorInterimValidationResults : Int32 { case cvtValid = 0 case cvtValidButUntrusted = 1 case cvtInvalid = 2 case cvtCantBeEstablished = 3 }
Default Value
0
Remarks
Over the course of the validation process, the validator maintains an interim validity status for the chain that is being processed. This status is influenced by every single step of the validation routine, and may change along the way, before the end of the chain is reached and the final validation conclusion is drawn.
Use this property to check the interim validity status mid-flight.
cvtValid | 0 | The chain is valid |
cvtValidButUntrusted | 1 | The chain is valid, but the root certificate is not trusted |
cvtInvalid | 2 | The chain is not valid (some of certificates are revoked, expired, or contain an invalid signature) |
cvtCantBeEstablished | 3 | The validity of the chain cannot be established because of missing or unavailable validation information (certificates, CRLs, or OCSP responses) |