@ThreadSafe public final class ImpersonationAuthenticator extends Object
PropertyKey.Template#MASTER_IMPERSONATION_USERS_OPTION
and/or
PropertyKey.Template#MASTER_IMPERSONATION_GROUPS_OPTION
must be used to specify the
users and groups the connection user is allowed to impersonate.Constructor and Description |
---|
ImpersonationAuthenticator(AlluxioConfiguration conf)
Constructs a new
ImpersonationAuthenticator . |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String connectionUser,
String impersonationUser) |
public ImpersonationAuthenticator(AlluxioConfiguration conf)
ImpersonationAuthenticator
.
Note the constructor for this object is expensive. Take care with how many of these are
instantiated.conf
- conf Alluxio configurationpublic void authenticate(String connectionUser, String impersonationUser) throws AuthenticationException
connectionUser
- the user of the connectionimpersonationUser
- the user to impersonateAuthenticationException
- if the connectionUser is not allowed to impersonate the
impersonationUserCopyright © 2023. All Rights Reserved.