Java 类com.amazonaws.profile.path.AwsProfileFileLocationProvider 实例源码

项目:ibm-cos-sdk-java    文件:AwsProfileFileLocationProviderChain.java   
@Override
public File getLocation() {
    for (AwsProfileFileLocationProvider provider : providers) {
        File path = provider.getLocation();
        if (path != null) {
            return path;
        }
    }
    return null;
}
项目:ibm-cos-sdk-java    文件:AwsProfileRegionProvider.java   
@SdkTestInternalApi
AwsProfileRegionProvider(String profileName, AwsProfileFileLocationProvider locationProvider,
                         BasicProfileConfigLoader configLoader) {
    this.profileName = profileName;
    this.locationProvider = locationProvider;
    this.profileConfigLoader = configLoader;
}
项目:strongbox    文件:AWSCLIConfigFile.java   
public static Optional<File> getCredentialProfilesFile() {
    return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation());
}
项目:strongbox    文件:AWSCLIConfigFile.java   
public static Optional<File> getConfigFile() {
    return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER.getLocation());
}
项目:ibm-cos-sdk-java    文件:AwsProfileFileLocationProviderChain.java   
public AwsProfileFileLocationProviderChain(AwsProfileFileLocationProvider... providers) {
    Collections.addAll(this.providers, providers);
}
项目:ibm-cos-sdk-java    文件:AwsProfileRegionProvider.java   
public AwsProfileRegionProvider(String profileName) {
    this(profileName, AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER,
         BasicProfileConfigLoader.INSTANCE);
}
项目:ibm-cos-sdk-java    文件:ProfilesConfigFile.java   
private static File getCredentialProfilesFile() {
    return AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation();
}