Package io.grpc.netty
Class InternalNettyServerCredentials
java.lang.Object
io.grpc.netty.InternalNettyServerCredentials
Internal
NettyServerCredentials
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 ServerCredentials
create
(InternalProtocolNegotiator.ProtocolNegotiator negotiator) Creates aServerCredentials
that will use the providednegotiator
.static ServerCredentials
create
(InternalProtocolNegotiator.ServerFactory negotiator) Creates aServerCredentials
that will use the providednegotiator
.toNegotiator
(ServerCredentials serverCredentials) Converts aServerCredentials
to a negotiator, in similar fashion as for a new server.
-
Method Details
-
create
Creates aServerCredentials
that will use the providednegotiator
. -
create
Creates aServerCredentials
that will use the providednegotiator
. Use ofcreate(io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator)
is preferred over this method when possible. -
toNegotiator
public static InternalProtocolNegotiator.ServerFactory toNegotiator(ServerCredentials serverCredentials) Converts aServerCredentials
to a negotiator, in similar fashion as for a new server.- Throws:
IllegalArgumentException
- if unable to convert
-