@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()
Constructs a new
ImpersonationAuthenticator . |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String connectionUser,
String impersonationUser) |
public ImpersonationAuthenticator()
ImpersonationAuthenticator
.public 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.