示例#1
0
 public DefaultCredentialProvider(
     IClientProfile profile,
     string publicKeyId,
     string privateKeyFile,
     AlibabaCloudCredentialsProvider alibabaCloudCredentialsProvider
     )
 {
     defaultProfile                 = profile;
     this.privateKeyFile            = privateKeyFile;
     this.publicKeyId               = publicKeyId;
     regionId                       = EnvironmentUtil.GetEnvironmentRegionId();
     alibabaCloudCredentialProvider = alibabaCloudCredentialsProvider;
 }
示例#2
0
 public DefaultCredentialProvider(
     IClientProfile profile,
     AlibabaCloudCredentialsProvider alibabaCloudCredentialProvider
     )
 {
     accessKeyId            = EnvironmentUtil.GetEnvironmentAccessKeyId();
     accessKeySecret        = EnvironmentUtil.GetEnvironmentAccessKeySecret();
     regionId               = EnvironmentUtil.GetEnvironmentRegionId();
     credentialFileLocation = EnvironmentUtil.GetEnvironmentCredentialFile();
     roleName               = EnvironmentUtil.GetEnvironmentRoleName();
     defaultProfile         = profile;
     this.alibabaCloudCredentialProvider = alibabaCloudCredentialProvider;
 }