Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.netty |
The main transport implementation based on Netty,
for both the client and the server.
|
io.grpc.okhttp |
A lightweight transport based on
OkHttp, mainly for use on Android
(client-only).
|
io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
io.grpc.xds |
Library for gPRC proxyless service mesh using Envoy xDS protocol.
|
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() |
ChannelCredentials |
LoadBalancer.Helper.getChannelCredentials()
Returns the ChannelCredentials used to construct the channel, without bearer tokens.
|
ChannelCredentials |
LoadBalancer.Helper.getUnsafeChannelCredentials()
Returns the UNSAFE ChannelCredentials used to construct the channel,
including bearer tokens.
|
ChannelCredentials |
TlsChannelCredentials.withoutBearerTokens() |
ChannelCredentials |
ChoiceChannelCredentials.withoutBearerTokens() |
ChannelCredentials |
InsecureChannelCredentials.withoutBearerTokens() |
ChannelCredentials |
CompositeChannelCredentials.withoutBearerTokens() |
abstract ChannelCredentials |
ChannelCredentials.withoutBearerTokens()
Returns the ChannelCredentials stripped of its CallCredentials.
|
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) |
ManagedChannelBuilder<?> |
LoadBalancer.Helper.createResolvingOobChannelBuilder(String target,
ChannelCredentials creds)
Creates an out-of-band channel builder for LoadBalancer's own RPC needs, e.g., talking to an
external load-balancer service, that is specified by a target string and credentials.
|
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilder(String target,
ChannelCredentials creds)
Creates a channel builder with a target string and credentials.
|
protected ManagedChannelProvider.NewChannelBuilderResult |
ManagedChannelProvider.newChannelBuilder(String target,
ChannelCredentials creds)
Creates a new builder with the given target URI and credentials.
|
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilderForAddress(String host,
int port,
ChannelCredentials creds)
Creates a channel builder from a host, port, and credentials.
|
Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
InsecureFromHttp1ChannelCredentials.create()
Creates an insecure credential that will upgrade from HTTP/1 to HTTP/2.
|
static ChannelCredentials |
NettySslContextChannelCredentials.create(io.netty.handler.ssl.SslContext sslContext)
Create a credential using Netty's SslContext as configuration.
|
Modifier and Type | Method and Description |
---|---|
static NettyChannelBuilder |
NettyChannelBuilder.forAddress(SocketAddress serverAddress,
ChannelCredentials creds)
Creates a new builder with the given server address.
|
static NettyChannelBuilder |
NettyChannelBuilder.forAddress(String host,
int port,
ChannelCredentials creds)
Creates a new builder with the given host and port.
|
static NettyChannelBuilder |
NettyChannelBuilder.forTarget(String target,
ChannelCredentials creds)
Creates a new builder with the given target string that will be resolved by
NameResolver . |
ManagedChannelProvider.NewChannelBuilderResult |
NettyChannelProvider.newChannelBuilder(String target,
ChannelCredentials creds) |
Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
SslSocketFactoryChannelCredentials.create(SSLSocketFactory factory) |
Modifier and Type | Method and Description |
---|---|
static OkHttpChannelBuilder |
OkHttpChannelBuilder.forAddress(String host,
int port,
ChannelCredentials creds)
Creates a new builder with the given host and port.
|
static OkHttpChannelBuilder |
OkHttpChannelBuilder.forTarget(String target,
ChannelCredentials creds)
Creates a new builder for the given target that will be resolved by
NameResolver . |
ManagedChannelProvider.NewChannelBuilderResult |
OkHttpChannelProvider.newChannelBuilder(String target,
ChannelCredentials creds) |
Modifier and Type | Method and Description |
---|---|
ChannelCredentials |
ForwardingLoadBalancerHelper.getChannelCredentials() |
ChannelCredentials |
ForwardingLoadBalancerHelper.getUnsafeChannelCredentials() |
Modifier and Type | Method and Description |
---|---|
ManagedChannelBuilder<?> |
ForwardingLoadBalancerHelper.createResolvingOobChannelBuilder(String target,
ChannelCredentials creds) |
Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
XdsChannelCredentials.create(ChannelCredentials fallback)
Creates credentials to be configured by xDS, falling back to other credentials if no
TLS configuration is provided by xDS.
|
Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
XdsChannelCredentials.create(ChannelCredentials fallback)
Creates credentials to be configured by xDS, falling back to other credentials if no
TLS configuration is provided by xDS.
|