下面列出了com.amazonaws.auth.profile.internal.ProfileKeyConstants#com.amazonaws.profile.path.AwsProfileFileLocationProvider 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public File getLocation() {
for (AwsProfileFileLocationProvider provider : providers) {
File path = provider.getLocation();
if (path != null) {
return path;
}
}
return null;
}
public static Optional<File> getCredentialProfilesFile() {
return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation());
}
public static Optional<File> getConfigFile() {
return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER.getLocation());
}
public AwsProfileFileLocationProviderChain(AwsProfileFileLocationProvider... providers) {
Collections.addAll(this.providers, providers);
}
private static File getCredentialProfilesFile() {
return AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation();
}