Uses of Class
io.grpc.ChannelCredentials
-
Packages that use ChannelCredentials Package Description io.grpc The gRPC core public API.io.grpc.inprocess The in-process transport which is for when a server is in the same process as the client.io.grpc.internal Interfaces and implementations that are internal to gRPC.io.grpc.netty The main transport implementation based on Netty, for both the client and the server.io.grpc.util Utilities with advanced features in the core layer that user can optionally use. -
-
Uses of ChannelCredentials in io.grpc
Subclasses of ChannelCredentials in io.grpc Modifier and Type Class Description class
ChoiceChannelCredentials
Provides a list ofChannelCredentials
, where any one may be used.class
CompositeChannelCredentials
ChannelCredentials
which use per-RPCCallCredentials
.class
InsecureChannelCredentials
No client identity, authentication, or encryption is to be used.class
TlsChannelCredentials
TLS credentials, providing server authentication and encryption.Fields in io.grpc declared as ChannelCredentials Modifier and Type Field Description private ChannelCredentials
CompositeChannelCredentials. channelCredentials
Fields in io.grpc with type parameters of type ChannelCredentials Modifier and Type Field Description private java.util.List<ChannelCredentials>
ChoiceChannelCredentials. creds
Methods in io.grpc that return ChannelCredentials Modifier and Type Method Description ChannelCredentials
TlsChannelCredentials.Builder. build()
Construct the credentials.static ChannelCredentials
ChoiceChannelCredentials. create(ChannelCredentials... creds)
Constructs with the providedcreds
as options, with preferred credentials first.static ChannelCredentials
CompositeChannelCredentials. create(ChannelCredentials channelCreds, CallCredentials callCreds)
static ChannelCredentials
InsecureChannelCredentials. create()
static ChannelCredentials
TlsChannelCredentials. create()
Use TLS with its defaults.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.abstract ChannelCredentials
ChannelCredentials. withoutBearerTokens()
Returns the ChannelCredentials stripped of its CallCredentials.ChannelCredentials
ChoiceChannelCredentials. withoutBearerTokens()
ChannelCredentials
CompositeChannelCredentials. withoutBearerTokens()
ChannelCredentials
InsecureChannelCredentials. withoutBearerTokens()
ChannelCredentials
TlsChannelCredentials. withoutBearerTokens()
Methods in io.grpc that return types with arguments of type ChannelCredentials Modifier and Type Method Description java.util.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 ChannelCredentials
ChoiceChannelCredentials. create(ChannelCredentials... creds)
Constructs with the providedcreds
as options, with preferred credentials first.static ChannelCredentials
CompositeChannelCredentials. create(ChannelCredentials channelCreds, CallCredentials callCreds)
ManagedChannelBuilder<?>
LoadBalancer.Helper. createResolvingOobChannelBuilder(java.lang.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(java.lang.String target, ChannelCredentials creds)
Creates a channel builder with a target string and credentials.static ManagedChannelProvider.NewChannelBuilderResult
InternalManagedChannelProvider. newChannelBuilder(ManagedChannelProvider provider, java.lang.String target, ChannelCredentials creds)
protected ManagedChannelProvider.NewChannelBuilderResult
ManagedChannelProvider. newChannelBuilder(java.lang.String target, ChannelCredentials creds)
Creates a new builder with the given target URI and credentials.(package private) ManagedChannelBuilder<?>
ManagedChannelRegistry. newChannelBuilder(NameResolverRegistry nameResolverRegistry, java.lang.String target, ChannelCredentials creds)
(package private) ManagedChannelBuilder<?>
ManagedChannelRegistry. newChannelBuilder(java.lang.String target, ChannelCredentials creds)
static ManagedChannelBuilder<?>
Grpc. newChannelBuilderForAddress(java.lang.String host, int port, ChannelCredentials creds)
Creates a channel builder from a host, port, and credentials.Constructors in io.grpc with parameters of type ChannelCredentials Constructor Description CompositeChannelCredentials(ChannelCredentials channelCreds, CallCredentials callCreds)
Constructor parameters in io.grpc with type arguments of type ChannelCredentials Constructor Description ChoiceChannelCredentials(java.util.List<ChannelCredentials> creds)
-
Uses of ChannelCredentials in io.grpc.inprocess
Methods in io.grpc.inprocess with parameters of type ChannelCredentials Modifier and Type Method Description ClientTransportFactory.SwapChannelCredentialsResult
InProcessChannelBuilder.InProcessClientTransportFactory. swapChannelCredentials(ChannelCredentials channelCreds)
-
Uses of ChannelCredentials in io.grpc.internal
Subclasses of ChannelCredentials in io.grpc.internal Modifier and Type Class Description (package private) class
ManagedChannelImpl.LbHelperImpl.DefaultChannelCreds
A placeholder for channel creds if user did not specify channel creds for the channel.Fields in io.grpc.internal declared as ChannelCredentials Modifier and Type Field Description (package private) ChannelCredentials
ManagedChannelImplBuilder. channelCredentials
private ChannelCredentials
ManagedChannelImpl. originalChannelCreds
Methods in io.grpc.internal that return ChannelCredentials Modifier and Type Method Description ChannelCredentials
ManagedChannelImpl.LbHelperImpl. getUnsafeChannelCredentials()
ChannelCredentials
ManagedChannelImpl.LbHelperImpl.DefaultChannelCreds. withoutBearerTokens()
Methods in io.grpc.internal with parameters of type ChannelCredentials Modifier and Type Method Description ManagedChannelBuilder<?>
ManagedChannelImpl.LbHelperImpl. createResolvingOobChannelBuilder(java.lang.String target, ChannelCredentials channelCreds)
ClientTransportFactory.SwapChannelCredentialsResult
CallCredentialsApplyingTransportFactory. swapChannelCredentials(ChannelCredentials channelCreds)
ClientTransportFactory.SwapChannelCredentialsResult
ClientTransportFactory. swapChannelCredentials(ChannelCredentials channelCreds)
Swaps to a new ChannelCredentials with all other settings unchanged.Constructors in io.grpc.internal with parameters of type ChannelCredentials Constructor Description ManagedChannelImplBuilder(java.lang.String target, ChannelCredentials channelCreds, CallCredentials callCreds, ManagedChannelImplBuilder.ClientTransportFactoryBuilder clientTransportFactoryBuilder, ManagedChannelImplBuilder.ChannelBuilderDefaultPortProvider channelBuilderDefaultPortProvider)
Creates a new managed channel builder with a target string, which can be either a validNameResolver
-compliant URI, or an authority string.ManagedChannelImplBuilder(java.net.SocketAddress directServerAddress, java.lang.String authority, ChannelCredentials channelCreds, CallCredentials callCreds, ManagedChannelImplBuilder.ClientTransportFactoryBuilder clientTransportFactoryBuilder, ManagedChannelImplBuilder.ChannelBuilderDefaultPortProvider channelBuilderDefaultPortProvider)
Creates a new managed channel builder with the given server address, authority string of the channel. -
Uses of ChannelCredentials in io.grpc.netty
Subclasses of ChannelCredentials in io.grpc.netty Modifier and Type Class Description (package private) class
NettyChannelCredentials
A credential with full control over the security handshake.Methods in io.grpc.netty that return ChannelCredentials Modifier and Type Method Description static ChannelCredentials
InsecureFromHttp1ChannelCredentials. create()
Creates an insecure credential that will upgrade from HTTP/1 to HTTP/2.static ChannelCredentials
InternalNettyChannelCredentials. create(InternalProtocolNegotiator.ClientFactory negotiator)
Creates aChannelCredentials
that will use the providednegotiator
.static ChannelCredentials
NettyChannelCredentials. create(ProtocolNegotiator.ClientFactory negotiator)
static ChannelCredentials
NettySslContextChannelCredentials. create(io.netty.handler.ssl.SslContext sslContext)
Create a credential using Netty's SslContext as configuration.ChannelCredentials
NettyChannelCredentials. withoutBearerTokens()
Methods in io.grpc.netty with parameters of type ChannelCredentials Modifier and Type Method Description static NettyChannelBuilder
NettyChannelBuilder. forAddress(java.lang.String host, int port, ChannelCredentials creds)
Creates a new builder with the given host and port.static NettyChannelBuilder
NettyChannelBuilder. forAddress(java.net.SocketAddress serverAddress, ChannelCredentials creds)
Creates a new builder with the given server address.static NettyChannelBuilder
NettyChannelBuilder. forTarget(java.lang.String target, ChannelCredentials creds)
Creates a new builder with the given target string that will be resolved byNameResolver
.static ProtocolNegotiators.FromChannelCredentialsResult
ProtocolNegotiators. from(ChannelCredentials creds)
ManagedChannelProvider.NewChannelBuilderResult
NettyChannelProvider. newChannelBuilder(java.lang.String target, ChannelCredentials creds)
ManagedChannelProvider.NewChannelBuilderResult
UdsNettyChannelProvider. newChannelBuilder(java.lang.String target, ChannelCredentials creds)
ClientTransportFactory.SwapChannelCredentialsResult
NettyChannelBuilder.NettyTransportFactory. swapChannelCredentials(ChannelCredentials channelCreds)
static InternalProtocolNegotiator.ClientFactory
InternalNettyChannelCredentials. toNegotiator(ChannelCredentials channelCredentials)
Converts aChannelCredentials
to a negotiator, in similar fashion as for a new channel.Constructors in io.grpc.netty with parameters of type ChannelCredentials Constructor Description NettyChannelBuilder(java.lang.String target, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
NettyChannelBuilder(java.net.SocketAddress address, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
-
Uses of ChannelCredentials in io.grpc.util
Methods in io.grpc.util that return ChannelCredentials Modifier and Type Method Description ChannelCredentials
ForwardingLoadBalancerHelper. getChannelCredentials()
ChannelCredentials
ForwardingLoadBalancerHelper. getUnsafeChannelCredentials()
Methods in io.grpc.util with parameters of type ChannelCredentials Modifier and Type Method Description ManagedChannelBuilder<?>
ForwardingLoadBalancerHelper. createResolvingOobChannelBuilder(java.lang.String target, ChannelCredentials creds)
-