diff options
author | 2015-10-06 16:47:49 -0700 | |
---|---|---|
committer | 2015-10-06 17:57:45 -0700 | |
commit | 5bd7005833b60d9db31860049458b122fa496599 (patch) | |
tree | 8c05e9f2c6c6cda444330901aa09f78feb29a6c7 /src/csharp/Grpc.Auth | |
parent | 9e5e7e9a6cde7f9d91b00cb65b3c99e01916c813 (diff) |
introduce the new split-type credentials api
Diffstat (limited to 'src/csharp/Grpc.Auth')
-rw-r--r-- | src/csharp/Grpc.Auth/GrpcCredentials.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/csharp/Grpc.Auth/GrpcCredentials.cs b/src/csharp/Grpc.Auth/GrpcCredentials.cs index 496d8e1416..d8b10804c6 100644 --- a/src/csharp/Grpc.Auth/GrpcCredentials.cs +++ b/src/csharp/Grpc.Auth/GrpcCredentials.cs @@ -41,7 +41,7 @@ using Grpc.Core.Utils; namespace Grpc.Auth { /// <summary> - /// Factory methods to create instances of <see cref="Credentials"/> class. + /// Factory methods to create instances of <see cref="ChannelCredentials"/> and <see cref="CallCredentials"/> classes. /// </summary> public static class GrpcCredentials { @@ -57,15 +57,15 @@ namespace Grpc.Auth } /// <summary> - /// Convenience method to create a <see cref="CompositeCredentials"/> instance from + /// Convenience method to create a <see cref="ChannelCredentials"/> instance from /// <c>ITokenAccess</c> credential and <c>SslCredentials</c> instance. /// </summary> /// <param name="credential">The credential to use to obtain access tokens.</param> /// <param name="sslCredentials">The <c>SslCredentials</c> instance.</param> - /// <returns>The composite credential for access token based auth over a secure channel.</returns> - public static CompositeCredentials Create(ITokenAccess credential, SslCredentials sslCredentials) + /// <returns>The channel credentials for access token based auth over a secure channel.</returns> + public static ChannelCredentials Create(ITokenAccess credential, SslCredentials sslCredentials) { - return CompositeCredentials.Create(Create(credential), sslCredentials); + return ChannelCredentials.Create(sslCredentials, Create(credential)); } /// <summary> |