Show / Hide Table of Contents

Class ListenerCertificateAuthenticator

ListenerCertificateAuthenticator provides certificate authentication for authenticating clients.

Inheritance
System.Object
ListenerCertificateAuthenticator
Implements
IListenerAuthenticator
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.P2P
Assembly: Couchbase.Lite.dll
Syntax
public class ListenerCertificateAuthenticator : IListenerAuthenticator
Remarks

NOTE: This is an enterprise edition feature

Constructors

| Improve this Doc View Source

ListenerCertificateAuthenticator(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

| Improve this Doc View Source

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 Source

RootCerts

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

| Improve this Doc View Source

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

Implements

IListenerAuthenticator
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX