Class InternalNettyServerCredentials
java.lang.Object
io.grpc.netty.InternalNettyServerCredentials
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerCredentialscreate(InternalProtocolNegotiator.ProtocolNegotiator negotiator) Creates aServerCredentialsthat will use the providednegotiator.static ServerCredentialscreate(InternalProtocolNegotiator.ServerFactory negotiator) Creates aServerCredentialsthat will use the providednegotiator.toNegotiator(ServerCredentials serverCredentials) Converts aServerCredentialsto a negotiator, in similar fashion as for a new server.
-
Method Details
-
create
Creates aServerCredentialsthat will use the providednegotiator. -
create
Creates aServerCredentialsthat 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 aServerCredentialsto a negotiator, in similar fashion as for a new server.- Throws:
IllegalArgumentException- if unable to convert
-