CBLMultipeerCertificateAuthenticator
@interface CBLMultipeerCertificateAuthenticator
: NSObject <CBLMultipeerAuthenticator>
A certificate authenticator used to verify a peer’s identity during multipeer replication.
-
Initializes the authenticator with a list of trusted root certificates.
The peer’s certificate will be accepted only if it is signed by one of the specified root certificates.
Declaration
Objective-C
- (nonnull instancetype)initWithRootCerts:(nonnull NSArray *)rootCerts;
Parameters
rootCerts
An array of trusted root certificates (
SecCertificateRef
).Return Value
A CBLMultipeerCertificateAuthenticator instance.
-
Initializes the authenticator with a custom certificate validation block.
Declaration
Objective-C
- (nonnull instancetype)initWithBlock: (nonnull CBLMultipeerCertificateAuthBlock)auth;
Parameters
auth
A block that performs custom validation on the peer’s certificate chain.
Return Value
A CBLMultipeerCertificateAuthenticator instance.
-
Unavailable
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;