public class ImpersonatorSettingImpl extends Object implements org.apache.ambari.view.ImpersonatorSetting
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DO_AS_PARAM |
Constructor and Description |
---|
ImpersonatorSettingImpl(String username,
String doAsParamName) |
ImpersonatorSettingImpl(org.apache.ambari.view.ViewContext context)
This constructor will use DEFAULT_DO_AS_PARAM and currently logged on user.
|
ImpersonatorSettingImpl(org.apache.ambari.view.ViewContext context,
String doAsParamName) |
Modifier and Type | Method and Description |
---|---|
String |
getDoAsParamName() |
String |
getUsername() |
public static final String DEFAULT_DO_AS_PARAM
public ImpersonatorSettingImpl(org.apache.ambari.view.ViewContext context)
context
- View context object that will provide the currently logged on user.public ImpersonatorSettingImpl(org.apache.ambari.view.ViewContext context, String doAsParamName)
context
- View context object that will provide the currently logged on user.doAsParamName
- The parameter name used for "doAs" impersonation.public String getDoAsParamName()
getDoAsParamName
in interface org.apache.ambari.view.ImpersonatorSetting
public String getUsername()
getUsername
in interface org.apache.ambari.view.ImpersonatorSetting
Copyright © 2022 Apache Software Foundation. All rights reserved.