mirror of https://github.com/grpc/grpc-java.git
docs: fix deprecation reference in ClientAuthInterceptor. (#2621)
This commit is contained in:
parent
6494a17c5b
commit
fa8f1150cb
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue