Class ChannelCredentialsConfiguratorBase (2.48.0)

public abstract class ChannelCredentialsConfiguratorBase : object

Base class for objects that can consume configuration from CallCredentials objects. Note: experimental API that can change or be removed without any prior notice.

Inheritance

Object > ChannelCredentialsConfiguratorBase

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Methods

SetCompositeCredentials(Object, ChannelCredentials, CallCredentials)

public abstract void SetCompositeCredentials(object state, ChannelCredentials channelCredentials, CallCredentials callCredentials)

Configures the credentials to use composite channel credentials (a composite of channel credentials and call credentials).

Parameters
Name Description
state Object
channelCredentials ChannelCredentials
callCredentials CallCredentials

SetInsecureCredentials(Object)

public abstract void SetInsecureCredentials(object state)

Configures the credentials to use insecure credentials.

Parameter
Name Description
state Object

SetSslCredentials(Object, Nullable<String>, KeyCertificatePair, VerifyPeerCallback)

public abstract void SetSslCredentials(object state, string? rootCertificates, KeyCertificatePair keyCertificatePair, VerifyPeerCallback verifyPeerCallback)

Configures the credentials to use SslCredentials.

Parameters
Name Description
state Object
rootCertificates Nullable<String>
keyCertificatePair KeyCertificatePair
verifyPeerCallback VerifyPeerCallback