ConfigurableDefaultImpersonationProvider@Unstable @Public public interface ImpersonationProvider extends Configurable
| Modifier and Type | Method | Description |
|---|---|---|
default void |
authorize(UserGroupInformation user,
java.lang.String remoteAddress) |
Authorize the superuser which is doing doAs.
|
void |
authorize(UserGroupInformation user,
java.net.InetAddress remoteAddress) |
Authorize the superuser which is doing doAs.
|
void |
init(java.lang.String configurationPrefix) |
Specifies the configuration prefix for the proxy user properties and
initializes the provider.
|
getConf, setConfvoid init(java.lang.String configurationPrefix)
configurationPrefix - the configuration prefix for the proxy user
propertiesdefault void authorize(UserGroupInformation user, java.lang.String remoteAddress) throws AuthorizationException
authorize(UserGroupInformation, InetAddress) should
be preferred to avoid possibly re-resolving the ip address.user - ugi of the effective or proxy user which contains a real user.remoteAddress - the ip address of client.AuthorizationException - Authorization Exception.void authorize(UserGroupInformation user, java.net.InetAddress remoteAddress) throws AuthorizationException
user - ugi of the effective or proxy user which contains a real userremoteAddress - the ip address of clientAuthorizationException - Authorization Exception.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.