Modifier and Type | Class and Description |
---|---|
class |
ChoiceChannelCredentials
Provides a list of
ChannelCredentials , where any one may be used. |
class |
CompositeChannelCredentials
ChannelCredentials which use per-RPC CallCredentials . |
class |
InsecureChannelCredentials
No client identity, authentication, or encryption is to be used.
|
class |
TlsChannelCredentials
TLS credentials, providing server authentication and encryption.
|
Modifier and Type | Method and Description |
---|---|
ChannelCredentials |
TlsChannelCredentials.Builder.build()
Construct the credentials.
|
static ChannelCredentials |
TlsChannelCredentials.create()
Use TLS with its defaults.
|
static ChannelCredentials |
InsecureChannelCredentials.create() |
static ChannelCredentials |
ChoiceChannelCredentials.create(ChannelCredentials... creds)
Constructs with the provided
creds as options, with preferred credentials first. |
static ChannelCredentials |
CompositeChannelCredentials.create(ChannelCredentials channelCreds,
CallCredentials callCreds) |
ChannelCredentials |
CompositeChannelCredentials.getChannelCredentials() |
Modifier and Type | Method and Description |
---|---|
List<ChannelCredentials> |
ChoiceChannelCredentials.getCredentialsList()
Non-empty list of credentials, in preference order.
|
Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
ChoiceChannelCredentials.create(ChannelCredentials... creds)
Constructs with the provided
creds as options, with preferred credentials first. |
static ChannelCredentials |
CompositeChannelCredentials.create(ChannelCredentials channelCreds,
CallCredentials callCreds) |
protected ManagedChannelProvider.NewChannelBuilderResult |
ManagedChannelProvider.newChannelBuilder(String target,
ChannelCredentials creds)
Creates a new builder with the given target URI and credentials.
|
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilder(String target,
ChannelCredentials creds)
Creates a channel builder with a target string and credentials.
|
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilderForAddress(String host,
int port,
ChannelCredentials creds)
Creates a channel builder from a host, port, and credentials.
|