Class BasicAuthenticator
An object that will authenticate a Replicator using HTTP Basic authentication
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite.Sync
Assembly: Couchbase.Lite.dll
Syntax
public sealed class BasicAuthenticator : Authenticator
Constructors
| Improve this Doc View SourceBasicAuthenticator(String, SecureString)
Construct a basic authenticator with username and password
Declaration
public BasicAuthenticator(string username, SecureString password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username to send through HTTP Basic authentication |
System.Security.SecureString | password | The password to send through HTTP Basic authentication |
BasicAuthenticator(String, String)
[DEPRECATED] Constructor
Declaration
[Obsolete("This constructor is deprecated, please use BasicAuthenticator([NotNull]string username, [NotNull]SecureString password) instead.")]
public BasicAuthenticator(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username to send through HTTP Basic authentication |
System.String | password | The password to send through HTTP Basic authentication |
Properties
| Improve this Doc View SourcePassword
[DEPRECATED] Gets the password that this object holds
Declaration
[Obsolete("This property is deprecated, please use SecureString PasswordSecureString instead.")]
public string Password { get; }
Property Value
Type | Description |
---|---|
System.String |
PasswordSecureString
Gets the password that this object holds
Declaration
public SecureString PasswordSecureString { get; }
Property Value
Type | Description |
---|---|
System.Security.SecureString |
Username
Gets the username that this object holds
Declaration
public string Username { get; }
Property Value
Type | Description |
---|---|
System.String |