Package io.grpc.alts
Class GoogleDefaultChannelCredentials
- java.lang.Object
-
- io.grpc.alts.GoogleDefaultChannelCredentials
-
public final class GoogleDefaultChannelCredentials extends java.lang.Object
Credentials appropriate to contact Google services. This class sets up a secure channel using ALTS if applicable and uses TLS as fallback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoogleDefaultChannelCredentials.Builder
Builder forGoogleDefaultChannelCredentials
instances.
-
Constructor Summary
Constructors Modifier Constructor Description private
GoogleDefaultChannelCredentials()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.grpc.ChannelCredentials
create()
Creates Google default credentials uses a secure channel with ALTS if applicable and uses TLS as fallback.static GoogleDefaultChannelCredentials.Builder
newBuilder()
Returns a new instance ofGoogleDefaultChannelCredentials.Builder
.
-
-
-
Method Detail
-
create
public static io.grpc.ChannelCredentials create()
Creates Google default credentials uses a secure channel with ALTS if applicable and uses TLS as fallback.
-
newBuilder
public static GoogleDefaultChannelCredentials.Builder newBuilder()
Returns a new instance ofGoogleDefaultChannelCredentials.Builder
.- Since:
- 1.43.0
-
-