Class InternalNettyChannelCredentials
java.lang.Object
io.grpc.netty.InternalNettyChannelCredentials
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelCredentialscreate(InternalProtocolNegotiator.ClientFactory negotiator) Creates aChannelCredentialsthat will use the providednegotiator.toNegotiator(ChannelCredentials channelCredentials) Converts aChannelCredentialsto a negotiator, in similar fashion as for a new channel.
-
Method Details
-
create
Creates aChannelCredentialsthat will use the providednegotiator. -
toNegotiator
public static InternalProtocolNegotiator.ClientFactory toNegotiator(ChannelCredentials channelCredentials) Converts aChannelCredentialsto a negotiator, in similar fashion as for a new channel.- Throws:
IllegalArgumentException- if unable to convert
-