Package io.grpc.netty
Class InternalNettyServerCredentials
- java.lang.Object
-
- io.grpc.netty.InternalNettyServerCredentials
-
@Internal public final class InternalNettyServerCredentials extends java.lang.Object
InternalNettyServerCredentialsaccessor. 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 privateInternalNettyServerCredentials()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerCredentialscreate(InternalProtocolNegotiator.ProtocolNegotiator negotiator)Creates aServerCredentialsthat will use the providednegotiator.static ServerCredentialscreate(InternalProtocolNegotiator.ServerFactory negotiator)Creates aServerCredentialsthat will use the providednegotiator.static InternalProtocolNegotiator.ServerFactorytoNegotiator(ServerCredentials serverCredentials)Converts aServerCredentialsto a negotiator, in similar fashion as for a new server.
-
-
-
Method Detail
-
create
public static ServerCredentials create(InternalProtocolNegotiator.ProtocolNegotiator negotiator)
Creates aServerCredentialsthat will use the providednegotiator.
-
create
public static ServerCredentials create(InternalProtocolNegotiator.ServerFactory negotiator)
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:
java.lang.IllegalArgumentException- if unable to convert
-
-