Couchbase Lite
Objective-C API for iOS and Mac OS
CBLAuthenticator.h
Go to the documentation of this file.
1 //
2 // CBLAuthenticator.h
3 // CouchbaseLite
4 //
5 // Created by Jens Alfke on 4/11/14.
6 // Copyright (c) 2014 Couchbase, Inc. All rights reserved.
7 
8 
9 #import "CBLBase.h"
10 
12 
13 
19 @protocol CBLAuthenticator <NSObject>
20 @end
21 
22 
25 @interface CBLAuthenticator : NSObject
26 
30 + (id<CBLAuthenticator>) basicAuthenticatorWithName: (NSString*)name
31  password: (NSString*)password;
32 
37 + (id<CBLAuthenticator>) facebookAuthenticatorWithToken: (NSString*)token;
38 
43 + (id<CBLAuthenticator>) personaAuthenticatorWithAssertion: (NSString*)assertion;
44 
49 + (id<CBLAuthenticator>) OAuth1AuthenticatorWithConsumerKey: (NSString*)consumerKey
50  consumerSecret: (NSString*)consumerSecret
51  token: (NSString*)token
52  tokenSecret: (NSString*)tokenSecret
53  signatureMethod: (NSString*)signatureMethod;
54 
58 + (id<CBLAuthenticator>) SSLClientCertAuthenticatorWithIdentity: (SecIdentityRef)identity
59  supportingCerts: (nullable NSArray*)certs;
60 
61 + (nullable id<CBLAuthenticator>) SSLClientCertAuthenticatorWithAnonymousIdentity: (NSString*)label;
62 
63 - (instancetype) init NS_UNAVAILABLE;
64 
65 @end
66 
67 
68 
#define NS_ASSUME_NONNULL_BEGIN
Definition: CBLBase.h:20
#define nullable
Definition: CBLBase.h:22
#define NS_ASSUME_NONNULL_END
Definition: CBLBase.h:21
The CBLAuthenticator class provides factory methods for creating authenticator objects, for use with the .authenticator property of a CBLReplication.
Definition: CBLAuthenticator.h:25
instancetype NS_UNAVAILABLE()