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