public static final class CreateVpnConnectionRequest.TunnelIkeConfig.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateVpnConnectionRequest.TunnelIkeConfig |
build() |
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikeAuthAlg(String ikeAuthAlg)
The authentication algorithm that is used in Phase 1 negotiations.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikeEncAlg(String ikeEncAlg)
The encryption algorithm that is used in Phase 1 negotiations.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikeLifetime(Long ikeLifetime)
The SA lifetime that is determined by Phase 1 negotiations.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikeMode(String ikeMode)
The negotiation mode of IKE.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikePfs(String ikePfs)
The DH key exchange algorithm that is used in Phase 1 negotiations.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
ikeVersion(String ikeVersion)
The version of the IKE protocol.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
localId(String localId)
The identifier on the Alibaba Cloud side, which is used in Phase 1 negotiations.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
psk(String psk)
The pre-shared key, which is used for identity authentication between the tunnel and the tunnel peer.
|
CreateVpnConnectionRequest.TunnelIkeConfig.Builder |
remoteId(String remoteId)
The identifier of the tunnel peer, which is used in Phase 1 negotiations.
|
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikeAuthAlg(String ikeAuthAlg)
Valid values: **md5**, **sha1**, **sha256**, **sha384**, and **sha512**. Default value: **md5**.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikeEncAlg(String ikeEncAlg)
Valid values: **aes**, **aes192**, **aes256**, **des**, and **3des**. Default value: **aes**.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikeLifetime(Long ikeLifetime)
Valid values: **0** to **86400**. Default value: **86400**.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikeMode(String ikeMode)
* **main**: This mode offers higher security during negotiations. * **aggressive**: This mode is faster and has a higher success rate.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikePfs(String ikePfs)
Valid values: **group1**, **group2**, **group5**, and **group14**.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder ikeVersion(String ikeVersion)
Compared with IKEv1, IKEv2 simplifies the SA negotiation process and is more suitable for scenarios in which multiple CIDR blocks are used.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder localId(String localId)
You can set **LocalId** to a fully qualified domain name (FQDN). In this case, we recommend that you set IkeMode to **aggressive**.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder psk(String psk)
* The key must be 1 to 100 characters in length and can contain digits, letters, and the following characters: ``~!\`@#$%^&*()_-+={}[]|;:\",.<>/?`` * If you do not specify a pre-shared key, the system generates a random 16-character string as the pre-shared key. You can call the [DescribeVpnConnection](~~2526951~~) operation to query the pre-shared key that is generated by the system. > The tunnel and the tunnel peer must use the same pre-shared key. Otherwise, the tunnel cannot be established.
public CreateVpnConnectionRequest.TunnelIkeConfig.Builder remoteId(String remoteId)
You can set **RemoteId** to an FQDN. In this case, we recommend that you set IkeMode to **aggressive**.
public CreateVpnConnectionRequest.TunnelIkeConfig build()
Copyright © 2024. All rights reserved.