Uses of Class
io.grpc.ChannelCredentials
-
Packages that use ChannelCredentials 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 gRPC proxyless service mesh using Envoy xDS protocol. -
-
Uses of ChannelCredentials in io.grpc
Subclasses of ChannelCredentials in io.grpc Modifier and Type Class Description classChoiceChannelCredentialsProvides a list ofChannelCredentials, where any one may be used.classCompositeChannelCredentialsChannelCredentialswhich use per-RPCCallCredentials.classInsecureChannelCredentialsNo client identity, authentication, or encryption is to be used.classTlsChannelCredentialsTLS credentials, providing server authentication and encryption.Methods in io.grpc that return ChannelCredentials Modifier and Type Method Description ChannelCredentialsTlsChannelCredentials.Builder. build()Construct the credentials.static ChannelCredentialsChoiceChannelCredentials. create(ChannelCredentials... creds)Constructs with the providedcredsas options, with preferred credentials first.static ChannelCredentialsCompositeChannelCredentials. create(ChannelCredentials channelCreds, CallCredentials callCreds)static ChannelCredentialsInsecureChannelCredentials. create()static ChannelCredentialsTlsChannelCredentials. create()Use TLS with its defaults.ChannelCredentialsCompositeChannelCredentials. getChannelCredentials()ChannelCredentialsLoadBalancer.Helper. getChannelCredentials()Returns the ChannelCredentials used to construct the channel, without bearer tokens.ChannelCredentialsLoadBalancer.Helper. getUnsafeChannelCredentials()Returns the UNSAFE ChannelCredentials used to construct the channel, including bearer tokens.abstract ChannelCredentialsChannelCredentials. withoutBearerTokens()Returns the ChannelCredentials stripped of its CallCredentials.ChannelCredentialsChoiceChannelCredentials. withoutBearerTokens()ChannelCredentialsCompositeChannelCredentials. withoutBearerTokens()ChannelCredentialsInsecureChannelCredentials. withoutBearerTokens()ChannelCredentialsTlsChannelCredentials. withoutBearerTokens()Methods in io.grpc that return types with arguments of type ChannelCredentials Modifier and Type Method Description List<ChannelCredentials>ChoiceChannelCredentials. getCredentialsList()Non-empty list of credentials, in preference order.Methods in io.grpc with parameters of type ChannelCredentials Modifier and Type Method Description static ChannelCredentialsChoiceChannelCredentials. create(ChannelCredentials... creds)Constructs with the providedcredsas options, with preferred credentials first.static ChannelCredentialsCompositeChannelCredentials. 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.NewChannelBuilderResultManagedChannelProvider. 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. -
Uses of ChannelCredentials in io.grpc.netty
Methods in io.grpc.netty that return ChannelCredentials Modifier and Type Method Description static ChannelCredentialsInsecureFromHttp1ChannelCredentials. create()Creates an insecure credential that will upgrade from HTTP/1 to HTTP/2.static ChannelCredentialsNettySslContextChannelCredentials. create(SslContext sslContext)Create a credential using Netty's SslContext as configuration.Methods in io.grpc.netty with parameters of type ChannelCredentials Modifier and Type Method Description static NettyChannelBuilderNettyChannelBuilder. forAddress(String host, int port, ChannelCredentials creds)Creates a new builder with the given host and port.static NettyChannelBuilderNettyChannelBuilder. forAddress(SocketAddress serverAddress, ChannelCredentials creds)Creates a new builder with the given server address.static NettyChannelBuilderNettyChannelBuilder. forTarget(String target, ChannelCredentials creds)Creates a new builder with the given target string that will be resolved byNameResolver. -
Uses of ChannelCredentials in io.grpc.okhttp
Methods in io.grpc.okhttp that return ChannelCredentials Modifier and Type Method Description static ChannelCredentialsSslSocketFactoryChannelCredentials. create(SSLSocketFactory factory)Methods in io.grpc.okhttp with parameters of type ChannelCredentials Modifier and Type Method Description static OkHttpChannelBuilderOkHttpChannelBuilder. forAddress(String host, int port, ChannelCredentials creds)Creates a new builder with the given host and port.static OkHttpChannelBuilderOkHttpChannelBuilder. forTarget(String target, ChannelCredentials creds)Creates a new builder for the given target that will be resolved byNameResolver. -
Uses of ChannelCredentials in io.grpc.util
Methods in io.grpc.util that return ChannelCredentials Modifier and Type Method Description ChannelCredentialsForwardingLoadBalancerHelper. getChannelCredentials()ChannelCredentialsForwardingLoadBalancerHelper. getUnsafeChannelCredentials()Methods in io.grpc.util with parameters of type ChannelCredentials Modifier and Type Method Description ManagedChannelBuilder<?>ForwardingLoadBalancerHelper. createResolvingOobChannelBuilder(String target, ChannelCredentials creds) -
Uses of ChannelCredentials in io.grpc.xds
Methods in io.grpc.xds that return ChannelCredentials Modifier and Type Method Description static ChannelCredentialsXdsChannelCredentials. create(ChannelCredentials fallback)Creates credentials to be configured by xDS, falling back to other credentials if no TLS configuration is provided by xDS.Methods in io.grpc.xds with parameters of type ChannelCredentials Modifier and Type Method Description static ChannelCredentialsXdsChannelCredentials. create(ChannelCredentials fallback)Creates credentials to be configured by xDS, falling back to other credentials if no TLS configuration is provided by xDS.
-