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
NameDescription
stateObject
channelCredentialsChannelCredentials
callCredentialsCallCredentials

SetInsecureCredentials(Object)

public abstract void SetInsecureCredentials(object state)

Configures the credentials to use insecure credentials.

Parameter
NameDescription
stateObject

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
NameDescription
stateObject
rootCertificatesNullable<String>
keyCertificatePairKeyCertificatePair
verifyPeerCallbackVerifyPeerCallback