grpc-java/netty
Kun Zhang 861f9147ed
core: add CallCredentials2 and deprecate CallCredentials' old interface (#4902)
This is the first step of smoothly changing the CallCredentials API.

Security level and authority are parameters required to be passed to
applyRequestMetadata(). This change wraps them, along with
MethodDescriptor and the transport attributes to RequestInfo, which is
more clear to the implementers.

ATTR_SECURITY_LEVEL is moved to the internal GrpcAttributes and
annotated as TransportAttr, because transports are required to set it,
but no user is actually reading them from
{Client,Server}Call.getAttributes().

ATTR_AUTHORITY is removed, because no transport is overriding it.

All involved interfaces are changed to abstract classes, as this will
make further API changes smoother.

The CallCredentials name is stabilized, thus we first introduce
CallCredentials2, ask CallCredentials implementations to migrate to
it, while GRPC accepting both at the same time, then replace
CallCredentials with CallCredentials2.
2018-10-10 21:45:56 -07:00
..
shaded alts: Use grpc-netty-shaded instead of grpc-netty 2018-08-15 17:39:20 -07:00
src core: add CallCredentials2 and deprecate CallCredentials' old interface (#4902) 2018-10-10 21:45:56 -07:00
BUILD.bazel Also fix bazel name of io.netty:netty-transport 2017-08-23 15:48:08 -07:00
build.gradle all: add gradle format checker 2018-06-11 18:35:18 -07:00