IpsecPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.IpsecPolicy

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 IpsecPolicy class.

Method Summary

Modifier and Type Method and Description
DhGroup dhGroup()

Get the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.

static IpsecPolicy fromJson(JsonReader jsonReader)

Reads an instance of IpsecPolicy from the JsonReader.

IkeEncryption ikeEncryption()

Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).

IkeIntegrity ikeIntegrity()

Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).

IpsecEncryption ipsecEncryption()

Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).

IpsecIntegrity ipsecIntegrity()

Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).

PfsGroup pfsGroup()

Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.

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.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpsecPolicy withDhGroup(DhGroup dhGroup)

Set the dhGroup property: The DH Group used in IKE Phase 1 for initial SA.

IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)

Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).

IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)

Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).

IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)

Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).

IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)

Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).

IpsecPolicy withPfsGroup(PfsGroup pfsGroup)

Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.

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.

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.

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:

the dhGroup value.

fromJson

public static IpsecPolicy fromJson(JsonReader jsonReader)

Reads an instance of IpsecPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpsecPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ikeEncryption

public IkeEncryption ikeEncryption()

Get the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).

Returns:

the ikeEncryption value.

ikeIntegrity

public IkeIntegrity ikeIntegrity()

Get the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).

Returns:

the ikeIntegrity value.

ipsecEncryption

public IpsecEncryption ipsecEncryption()

Get the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).

Returns:

the ipsecEncryption value.

ipsecIntegrity

public IpsecIntegrity ipsecIntegrity()

Get the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).

Returns:

the ipsecIntegrity value.

pfsGroup

public PfsGroup pfsGroup()

Get the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.

Returns:

the pfsGroup value.

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:

the saDataSizeKilobytes value.

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:

the saLifeTimeSeconds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

dhGroup - the dhGroup value to set.

Returns:

the IpsecPolicy object itself.

withIkeEncryption

public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)

Set the ikeEncryption property: The IKE encryption algorithm (IKE phase 2).

Parameters:

ikeEncryption - the ikeEncryption value to set.

Returns:

the IpsecPolicy object itself.

withIkeIntegrity

public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)

Set the ikeIntegrity property: The IKE integrity algorithm (IKE phase 2).

Parameters:

ikeIntegrity - the ikeIntegrity value to set.

Returns:

the IpsecPolicy object itself.

withIpsecEncryption

public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)

Set the ipsecEncryption property: The IPSec encryption algorithm (IKE phase 1).

Parameters:

ipsecEncryption - the ipsecEncryption value to set.

Returns:

the IpsecPolicy object itself.

withIpsecIntegrity

public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)

Set the ipsecIntegrity property: The IPSec integrity algorithm (IKE phase 1).

Parameters:

ipsecIntegrity - the ipsecIntegrity value to set.

Returns:

the IpsecPolicy object itself.

withPfsGroup

public IpsecPolicy withPfsGroup(PfsGroup pfsGroup)

Set the pfsGroup property: The Pfs Group used in IKE Phase 2 for new child SA.

Parameters:

pfsGroup - the pfsGroup value to set.

Returns:

the IpsecPolicy object itself.

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:

saDataSizeKilobytes - the saDataSizeKilobytes value to set.

Returns:

the IpsecPolicy object itself.

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:

saLifeTimeSeconds - the saLifeTimeSeconds value to set.

Returns:

the IpsecPolicy object itself.

Applies to