Package io.grpc.netty
Class InternalNettyChannelCredentials
java.lang.Object
io.grpc.netty.InternalNettyChannelCredentials
Internal
NettyChannelCredentials
accessor. This is intended for usage internal to the
gRPC team. If you *really* think you need to use this, contact the gRPC team first.-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelCredentials
create
(InternalProtocolNegotiator.ClientFactory negotiator) Creates aChannelCredentials
that will use the providednegotiator
.toNegotiator
(ChannelCredentials channelCredentials) Converts aChannelCredentials
to a negotiator, in similar fashion as for a new channel.
-
Method Details
-
create
Creates aChannelCredentials
that will use the providednegotiator
. -
toNegotiator
public static InternalProtocolNegotiator.ClientFactory toNegotiator(ChannelCredentials channelCredentials) Converts aChannelCredentials
to a negotiator, in similar fashion as for a new channel.- Throws:
IllegalArgumentException
- if unable to convert
-