public static final class ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder extends Object
构造器和说明 |
---|
Builder() |
public ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder ikeAuthAlg(String ikeAuthAlg)
Valid values: **md5**, **sha1**, **sha256**, **sha384**, and **sha512**.
public ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder ikeEncAlg(String ikeEncAlg)
Valid values: **aes**, **aes192**, **aes256**, **des**, and **3des**.
public ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder ikeLifetime(Long ikeLifetime)
public ModifyVpnConnectionAttributeRequest.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 ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder ikePfs(String ikePfs)
public ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder ikeVersion(String ikeVersion)
Compared with IKEv1, IKEv2 simplifies the security association (SA) negotiation process and is more suitable for scenarios in which multiple CIDR blocks are used.
public ModifyVpnConnectionAttributeRequest.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 ModifyVpnConnectionAttributeRequest.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 ModifyVpnConnectionAttributeRequest.TunnelIkeConfig.Builder remoteId(String remoteId)
You can set **RemoteId** to an FQDN. In this case, we recommend that you set IkeMode to **aggressive**.
public ModifyVpnConnectionAttributeRequest.TunnelIkeConfig build()
Copyright © 2024. All rights reserved.