public abstract class ChannelCredentialsConfiguratorBase
Base class for objects that can consume configuration from CallCredentials
objects.
Note: experimental API that can change or be removed without any prior notice.
Namespace
Grpc.CoreAssembly
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, 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 |
string |
keyCertificatePair |
KeyCertificatePair |
verifyPeerCallback |
VerifyPeerCallback |