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.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InternalNettyChannelCredentials
private InternalNettyChannelCredentials()
-
-
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
-