Top Description Fields Constructors Methods
io.grpc

public final Class CompositeChannelCredentials

extends ChannelCredentials
Class Inheritance
Imports
com.google.common.base.Preconditions

ChannelCredentials which use per-RPC CallCredentials. If the ChannelCredentials has multiple CallCredentials (e.g., a composite credential inside a composite credential), then all of the CallCredentials should be used; one CallCredentials does not override another.

Field Summary

Modifier and TypeField and Description
private final CallCredentials
private final ChannelCredentials

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ChannelCredentials
create(ChannelCredentials channelCreds, CallCredentials callCreds)

public CallCredentials
public ChannelCredentials
public ChannelCredentials
withoutBearerTokens()

Implements abstract io.grpc.ChannelCredentials.withoutBearerTokens.

Returns the ChannelCredentials stripped of its CallCredentials.

Field Detail

callCredentialsback to summary
private final CallCredentials callCredentials
channelCredentialsback to summary
private final ChannelCredentials channelCredentials

Constructor Detail

CompositeChannelCredentialsback to summary
private CompositeChannelCredentials(ChannelCredentials channelCreds, CallCredentials callCreds)

Method Detail

createback to summary
public static ChannelCredentials create(ChannelCredentials channelCreds, CallCredentials callCreds)
getCallCredentialsback to summary
public CallCredentials getCallCredentials()
getChannelCredentialsback to summary
public ChannelCredentials getChannelCredentials()
withoutBearerTokensback to summary
public ChannelCredentials withoutBearerTokens()

Implements abstract io.grpc.ChannelCredentials.withoutBearerTokens.

Doc from io.grpc.ChannelCredentials.withoutBearerTokens.

Returns the ChannelCredentials stripped of its CallCredentials. In the future, this may strip only some of the CallCredentials, preserving call credentials that are safe from replay attacks (e.g., if the token is bound to the channel's certificate).

Annotations
@Override