docs: fix deprecation reference in ClientAuthInterceptor. (#2621)

This commit is contained in:
Kun Zhang 2017-01-18 16:25:57 -08:00 committed by GitHub
parent 6494a17c5b
commit fa8f1150cb
2 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,7 @@ import java.util.concurrent.Executor;
* <p>Uses the new and simplified Google auth library:
* https://github.com/google/google-auth-library-java
*
* @deprecated use {@link GoogleAuthLibraryCallCredentials} instead.
* @deprecated use {@link MoreCallCredentials#from(Credentials)} instead.
*/
@Deprecated
public final class ClientAuthInterceptor implements ClientInterceptor {

View File

@ -37,6 +37,13 @@ import java.util.concurrent.Executor;
/**
* Carries credential data that will be propagated to the server via request metadata for each RPC.
*
* <p>This is used by {@link CallOptions#withCallCredentials} and {@code withCallCredentials()} on
* the generated stub, for example:
* <pre>
* FooGrpc.FooStub stub = FooGrpc.newStub(channel);
* response = stub.withCallCredentials(creds).bar(request);
* </pre>
*/
@ExperimentalApi("https//github.com/grpc/grpc-java/issues/1914")
public interface CallCredentials {