public abstract class ChannelCredentials : object
Client-side channel credentials. Used for creation of a secure channel.
Derived Types
Namespace
Grpc.CoreAssembly
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
channelCredentials |
ChannelCredentials Channel credentials. |
callCredentials |
CallCredentials Call credentials. |
Returns | |
---|---|
Type | Description |
ChannelCredentials |
The new composite |
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 | |
---|---|
Name | Description |
configurator |
ChannelCredentialsConfiguratorBase |
state |
Object |