Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Dec 27, 2024
1 parent 472c2b4 commit 3ebb138
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,16 @@
package org.apache.gravitino.credential;

import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableSet;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import org.apache.gravitino.utils.PrincipalUtils;

public class CredentialUtils {

private static final Splitter splitter = Splitter.on(",");

public static Credential vendCredential(CredentialProvider credentialProvider, String[] path) {
PathBasedCredentialContext pathBasedCredentialContext =
new PathBasedCredentialContext(
PrincipalUtils.getCurrentUserName(), ImmutableSet.copyOf(path), Collections.emptySet());
return credentialProvider.getCredential(pathBasedCredentialContext);
}

public static Map<String, CredentialProvider> loadCredentialProviders(
Map<String, String> catalogProperties) {
Set<String> credentialProviders =
Expand Down

0 comments on commit 3ebb138

Please sign in to comment.