public DefaultCredentialProvider( IClientProfile profile, string publicKeyId, string privateKeyFile, AlibabaCloudCredentialsProvider alibabaCloudCredentialsProvider ) { defaultProfile = profile; this.privateKeyFile = privateKeyFile; this.publicKeyId = publicKeyId; regionId = EnvironmentUtil.GetEnvironmentRegionId(); alibabaCloudCredentialProvider = alibabaCloudCredentialsProvider; }
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; }