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