Package io.grpc.netty
Class NettyChannelCredentials
- java.lang.Object
-
- io.grpc.ChannelCredentials
-
- io.grpc.netty.NettyChannelCredentials
-
final class NettyChannelCredentials extends ChannelCredentials
A credential with full control over the security handshake.
-
-
Field Summary
Fields Modifier and Type Field Description private ProtocolNegotiator.ClientFactory
negotiator
-
Constructor Summary
Constructors Modifier Constructor Description private
NettyChannelCredentials(ProtocolNegotiator.ClientFactory negotiator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChannelCredentials
create(ProtocolNegotiator.ClientFactory negotiator)
ProtocolNegotiator.ClientFactory
getNegotiator()
ChannelCredentials
withoutBearerTokens()
Returns the ChannelCredentials stripped of its CallCredentials.
-
-
-
Field Detail
-
negotiator
private final ProtocolNegotiator.ClientFactory negotiator
-
-
Constructor Detail
-
NettyChannelCredentials
private NettyChannelCredentials(ProtocolNegotiator.ClientFactory negotiator)
-
-
Method Detail
-
create
public static ChannelCredentials create(ProtocolNegotiator.ClientFactory negotiator)
-
getNegotiator
public ProtocolNegotiator.ClientFactory getNegotiator()
-
withoutBearerTokens
public ChannelCredentials withoutBearerTokens()
Description copied from class:ChannelCredentials
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).- Specified by:
withoutBearerTokens
in classChannelCredentials
-
-