Package io.trino.hdfs.authentication
Class ImpersonatingHdfsAuthentication
java.lang.Object
io.trino.hdfs.authentication.ImpersonatingHdfsAuthentication
- All Implemented Interfaces:
HdfsAuthentication
-
Constructor Summary
ConstructorsConstructorDescriptionImpersonatingHdfsAuthentication(HadoopAuthentication hadoopAuthentication, UserNameProvider userNameProvider) -
Method Summary
Modifier and TypeMethodDescription<R,E extends Exception>
RdoAs(ConnectorIdentity identity, GenericExceptionAction<R, E> action)
-
Constructor Details
-
ImpersonatingHdfsAuthentication
@Inject public ImpersonatingHdfsAuthentication(HadoopAuthentication hadoopAuthentication, UserNameProvider userNameProvider)
-
-
Method Details
-
doAs
public <R,E extends Exception> R doAs(ConnectorIdentity identity, GenericExceptionAction<R, E> action) throws E- Specified by:
doAsin interfaceHdfsAuthentication- Throws:
E extends Exception
-