public class ProfileConfigFile extends Object
OSS_CREDENTIAL_PROFILES_FILE
environment variable or by
specifying an alternate credentials file location through this class'
constructor.
The OSS credentials file format allows you to specify multiple profiles, each with their own set of OSS security credentials:
[default] oss_access_key_id=testAccessKey oss_secret_access_key=testSecretKey oss_session_token=testSessionToken
These credential profiles allow you to share multiple sets of OSS security credentails between different tools such as the OSS SDK for Java and the OSS CLI.
构造器和说明 |
---|
ProfileConfigFile(File file)
Loads the OSS credential profiles from the file.
|
ProfileConfigFile(File file,
ProfileConfigLoader profileLoader)
Loads the OSS credential profiles from the file.
|
ProfileConfigFile(String filePath)
Loads the OSS credential profiles from the file.
|
ProfileConfigFile(String filePath,
ProfileConfigLoader profileLoader)
Loads the OSS credential profiles from the file.
|
public ProfileConfigFile(String filePath)
public ProfileConfigFile(String filePath, ProfileConfigLoader profileLoader)
public ProfileConfigFile(File file)
public ProfileConfigFile(File file, ProfileConfigLoader profileLoader)
public Credentials getCredentials()
public void refresh()
Copyright © 2019. All Rights Reserved.