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