public class ChannelAuthenticator extends Object
GrpcChannelBuilder
.Constructor and Description |
---|
ChannelAuthenticator(GrpcConnection connection,
Subject subject,
AuthType authType,
AlluxioConfiguration conf)
Creates
ChannelAuthenticator instance. |
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
It builds an authenticated channel.
|
io.grpc.Channel |
getAuthenticatedChannel() |
AuthenticatedChannelClientDriver |
getAuthenticationDriver() |
public ChannelAuthenticator(GrpcConnection connection, Subject subject, AuthType authType, AlluxioConfiguration conf)
ChannelAuthenticator
instance.connection
- the gRPC connectionsubject
- the javax subject to use for authenticationauthType
- the requested authentication typeconf
- the Alluxio configurationpublic void authenticate() throws AlluxioStatusException
AlluxioStatusException
public io.grpc.Channel getAuthenticatedChannel()
Channel
instancepublic AuthenticatedChannelClientDriver getAuthenticationDriver()
Copyright © 2023. All Rights Reserved.