presto-password-authenticators/src/main/java/io/prestosql/plugin/password/LdapAuthenticator.java/LdapAuthenticator/createAuthenticatedPrincipal
class LdapAuthenticator:    @Override
    public Principal createAuthenticatedPrincipal(String user, String password)
    {
        try {
            return authenticationCache.getUnchecked(new Credentials(user, password));
        }
        catch (UncheckedExecutionException e) {
            throwIfInstanceOf(e.getCause(), AccessDeniedException.class);
            throw e;
        }
    }