Package io.grpc.netty
Class InternalNettyChannelCredentials
- java.lang.Object
-
- io.grpc.netty.InternalNettyChannelCredentials
-
@Internal public final class InternalNettyChannelCredentials extends java.lang.Object
InternalNettyChannelCredentials
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 Modifier Constructor Description private
InternalNettyChannelCredentials()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelCredentials
create(InternalProtocolNegotiator.ClientFactory negotiator)
Creates aChannelCredentials
that will use the providednegotiator
.static InternalProtocolNegotiator.ClientFactory
toNegotiator(ChannelCredentials channelCredentials)
Converts aChannelCredentials
to a negotiator, in similar fashion as for a new channel.
-
-
-
Method Detail
-
create
public static ChannelCredentials create(InternalProtocolNegotiator.ClientFactory negotiator)
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:
java.lang.IllegalArgumentException
- if unable to convert
-
-