Class ListenerCertificateAuthenticator
ListenerCertificateAuthenticator provides certificate authentication for authenticating clients.
Inheritance
Implements
Inherited Members
Namespace: Couchbase.Lite.P2P
Assembly: Couchbase.Lite.dll
Syntax
public class ListenerCertificateAuthenticator : IListenerAuthenticator
Remarks
NOTE: This is an enterprise edition feature
Constructors
| Improve this Doc View SourceListenerCertificateAuthenticator(ListenerCertificateAuthenticator.ListenerCertificateAuthenticatorCallback)
Creates a ListenerCertificateAuthenticator object with the given delegate object to verify the certificates received from the client. When given the delegate object, it means that developers will need to verify the certificate chain received from the client by themselves.This option is mostly used for authenticating the self-sign certificate.
Declaration
public ListenerCertificateAuthenticator(ListenerCertificateAuthenticator.ListenerCertificateAuthenticatorCallback certificateAuthenticationCallback)
Parameters
Type | Name | Description |
---|---|---|
ListenerCertificateAuthenticator.ListenerCertificateAuthenticatorCallback | certificateAuthenticationCallback |
Remarks
NOTE: This is an enterprise edition feature
ListenerCertificateAuthenticator(X509Certificate2Collection)
Creates a ListenerCertificateAuthenticator object with the given root CA certificate chains. Any client cert that's been signed by the given root CA cert chains will be authenticated.
Declaration
public ListenerCertificateAuthenticator(X509Certificate2Collection rootCerts)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2Collection | rootCerts |
Remarks
NOTE: This is an enterprise edition feature
Properties
| Improve this Doc View SourceRootCerts
A collection of trusted root certificates used for validation
Declaration
public X509Certificate2Collection RootCerts { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2Collection |
Remarks
NOTE: This is an enterprise edition feature
ServerCertificateAuthenticationCallback
A callback for manual validation of a certificate
Declaration
public ListenerCertificateAuthenticator.ListenerCertificateAuthenticatorCallback ServerCertificateAuthenticationCallback { get; set; }
Property Value
Type | Description |
---|---|
ListenerCertificateAuthenticator.ListenerCertificateAuthenticatorCallback |
Remarks
NOTE: This is an enterprise edition feature