CBLBasicAuthenticator

@interface CBLBasicAuthenticator : CBLAuthenticator

The CBLBasicAuthenticator class is an authenticator that will authenticate using HTTP Basic auth with the given username and password. This should only be used over an SSL/TLS connection, as otherwise it’s very easy for anyone sniffing network traffic to read the password.

  • The username set to the CBLBasicAuthenticator.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull username;

    Swift

    var username: String { get }
  • The password set to the CBLBasicAuthenticator.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull password;

    Swift

    var password: String { get }
  • Initializes the CBLBasicAuthenticator with the given username and password.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUsername:(nonnull NSString *)username
                                    password:(nonnull NSString *)password;

    Swift

    init(username: String, password: String)
  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;