IpsecPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. IpsecPolicy
- com.
Implements
public final class IpsecPolicy
implements JsonSerializable<IpsecPolicy>
An IPSec Policy configuration for a virtual network gateway connection.
Constructor Summary
Constructor | Description |
---|---|
IpsecPolicy() |
Creates an instance of Ipsec |
Method Summary
Modifier and Type | Method and Description |
---|---|
Dh |
dhGroup()
Get the dh |
static
Ipsec |
fromJson(JsonReader jsonReader)
Reads an instance of Ipsec |
Ike |
ikeEncryption()
Get the ike |
Ike |
ikeIntegrity()
Get the ike |
Ipsec |
ipsecEncryption()
Get the ipsec |
Ipsec |
ipsecIntegrity()
Get the ipsec |
Pfs |
pfsGroup()
Get the pfs |
int |
saDataSizeKilobytes()
Get the sa |
int |
saLifeTimeSeconds()
Get the sa |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ipsec |
withDhGroup(DhGroup dhGroup)
Set the dh |
Ipsec |
withIkeEncryption(IkeEncryption ikeEncryption)
Set the ike |
Ipsec |
withIkeIntegrity(IkeIntegrity ikeIntegrity)
Set the ike |
Ipsec |
withIpsecEncryption(IpsecEncryption ipsecEncryption)
Set the ipsec |
Ipsec |
withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
Set the ipsec |
Ipsec |
withPfsGroup(PfsGroup pfsGroup)
Set the pfs |
Ipsec |
withSaDataSizeKilobytes(int saDataSizeKilobytes)
Set the sa |
Ipsec |
withSaLifeTimeSeconds(int saLifeTimeSeconds)
Set the sa |
Methods inherited from java.lang.Object
Constructor Details
IpsecPolicy
public IpsecPolicy()
Creates an instance of IpsecPolicy class.
Method Details
dhGroup
public DhGroup dhGroup()
Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.
Returns:
fromJson
public static IpsecPolicy fromJson(JsonReader jsonReader)
Reads an instance of IpsecPolicy from the JsonReader.
Parameters:
Returns:
Throws:
ikeEncryption
public IkeEncryption ikeEncryption()
Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).
Returns:
ikeIntegrity
public IkeIntegrity ikeIntegrity()
Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).
Returns:
ipsecEncryption
public IpsecEncryption ipsecEncryption()
Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).
Returns:
ipsecIntegrity
public IpsecIntegrity ipsecIntegrity()
Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).
Returns:
pfsGroup
public PfsGroup pfsGroup()
Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.
Returns:
saDataSizeKilobytes
public int saDataSizeKilobytes()
Get the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.
Returns:
saLifeTimeSeconds
public int saLifeTimeSeconds()
Get the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDhGroup
public IpsecPolicy withDhGroup(DhGroup dhGroup)
Set the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.
Parameters:
Returns:
withIkeEncryption
public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)
Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).
Parameters:
Returns:
withIkeIntegrity
public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)
Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).
Parameters:
Returns:
withIpsecEncryption
public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)
Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).
Parameters:
Returns:
withIpsecIntegrity
public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).
Parameters:
Returns:
withPfsGroup
public IpsecPolicy withPfsGroup(PfsGroup pfsGroup)
Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.
Parameters:
Returns:
withSaDataSizeKilobytes
public IpsecPolicy withSaDataSizeKilobytes(int saDataSizeKilobytes)
Set the saDataSizeKilobytes property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel.
Parameters:
Returns:
withSaLifeTimeSeconds
public IpsecPolicy withSaLifeTimeSeconds(int saLifeTimeSeconds)
Set the saLifeTimeSeconds property: The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.
Parameters:
Returns:
Applies to
Azure SDK for Java