Skip to content

Commit

Permalink
remove the description of rsakeypair
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and yndu13 committed Jul 8, 2024
1 parent 4bf3dd0 commit 72ea521
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
26 changes: 0 additions & 26 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,27 +157,6 @@ public class DemoTest {
}
```

#### RsaKeyPair
通过指定公钥Id和私钥文件,让凭证自动申请维护 AccessKey。仅支持日本站。

```java
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;

public class DemoTest {
public static void main(String[] args) throws Exception {
Config config = new Config();
// 凭证类型
config.setType("rsa_key_pair");
// PrivateKey文件路径
config.setPrivateKeyFile("PrivateKeyFile");
// 账户PublicKeyId
config.setPublicKeyId("PublicKeyId");
Client client = new Client(config);
}
}
```

#### URLCredential
通过指定提供凭证的自定义网络服务地址,让凭证自动申请维护 STS Token

Expand Down Expand Up @@ -256,11 +235,6 @@ role_arn = role_arn # 可通过设置环境变量 ALIBABA_CLOUD_R
role_session_name = session_name # 选填

[client3] # 命名为 `client3` 的配置
type = rsa_key_pair # 认证方式为 rsa_key_pair
public_key_id = publicKeyId # Public Key ID
private_key_file = /your/pk.pem # Private Key 文件

[client4] # 命名为 `client4` 的配置
enable = false # 不启用
type = oidc_role_arn # 认证方式为 oidc_role_arn
region_id = cn-test # 获取session用的region
Expand Down
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,27 +162,6 @@ public class DemoTest {
}
```

#### RsaKeyPair
By specifying the public key Id and the private key file, the credential will be able to automatically request maintenance of the AccessKey before sending the request. Only Japan station is supported.

```java
import com.aliyun.credentials.Client;
import com.aliyun.credentials.models.Config;

public class DemoTest {
public static void main(String[] args) throws Exception {
Config config = new Config();
// Which type of credential you want
config.setType("rsa_key_pair");
// The file path to store the PrivateKey
config.setPrivateKeyFile("PrivateKeyFile");
// PublicKeyId of your account
config.setPublicKeyId("PublicKeyId");
Client client = new Client(config);
}
}
```

#### URLCredential
By specifying the url, the credential will be able to automatically request maintenance of STS Token.

Expand Down Expand Up @@ -260,11 +239,6 @@ role_arn = role_arn # can be replaced by setting environment vari
role_session_name = session_name # optional

[client3] # configuration that is named as `client3`
type = rsa_key_pair # Certification type: rsa_key_pair
public_key_id = publicKeyId # Public Key ID
private_key_file = /your/pk.pem # Private Key file

[client4] # configuration that is named as `client4`
enable = false # Disable
type = oidc_role_arn # Certification type: oidc_role_arn
region_id = cn-test
Expand Down

0 comments on commit 72ea521

Please sign in to comment.