Class ChannelCredentials (2.48.0)

public abstract class ChannelCredentials : object

Client-side channel credentials. Used for creation of a secure channel.

Inheritance

Object > ChannelCredentials

Derived Types

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Constructors

ChannelCredentials()

public ChannelCredentials()

Creates a new instance of channel credentials

Properties

Insecure

public static ChannelCredentials Insecure { get; }

Returns instance of credentials that provides no security and will result in creating an unsecure channel with no encryption whatsoever.

Property Value
TypeDescription
ChannelCredentials

SecureSsl

public static ChannelCredentials SecureSsl { get; }

Returns instance of credentials that provides SSL security.

These credentials are the same as creating SslCredentials without parameters. Apps that are using Grpc.Core can create SslCredentials directly to customize the secure SSL credentials.

Property Value
TypeDescription
ChannelCredentials

Methods

Create(ChannelCredentials, CallCredentials)

public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials callCredentials)

Creates a new instance of ChannelCredentials class by composing given channel credentials with call credentials.

Parameters
NameDescription
channelCredentialsChannelCredentials

Channel credentials.

callCredentialsCallCredentials

Call credentials.

Returns
TypeDescription
ChannelCredentials

The new composite ChannelCredentials

InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase, Object)

public abstract void InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, object state)

Populates channel credentials configurator with this instance's configuration. End users never need to invoke this method as it is part of internal implementation.

Parameters
NameDescription
configuratorChannelCredentialsConfiguratorBase
stateObject