IpsecPolicy Class

  • java.lang.Object
    • com.microsoft.azure.management.network.IpsecPolicy

public class IpsecPolicy

An IPSec Policy configuration for a virtual network gateway connection.

Constructor Summary

Constructor Description
IpsecPolicy()

Method Summary

Modifier and Type Method and Description
DhGroup dhGroup()

Get the DH Group used in IKE Phase 1 for initial SA.

IkeEncryption ikeEncryption()

Get the IKE encryption algorithm (IKE phase 2).

IkeIntegrity ikeIntegrity()

Get the IKE integrity algorithm (IKE phase 2).

IpsecEncryption ipsecEncryption()

Get the IPSec encryption algorithm (IKE phase 1).

IpsecIntegrity ipsecIntegrity()

Get the IPSec integrity algorithm (IKE phase 1).

PfsGroup pfsGroup()

Get the Pfs Group used in IKE Phase 2 for new child SA.

int saDataSizeKilobytes()

Get 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 IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.

IpsecPolicy withDhGroup(DhGroup dhGroup)

Set the DH Group used in IKE Phase 1 for initial SA.

IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)

Set the IKE encryption algorithm (IKE phase 2).

IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)

Set the IKE integrity algorithm (IKE phase 2).

IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)

Set the IPSec encryption algorithm (IKE phase 1).

IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)

Set the IPSec integrity algorithm (IKE phase 1).

IpsecPolicy withPfsGroup(PfsGroup pfsGroup)

Set the Pfs Group used in IKE Phase 2 for new child SA.

IpsecPolicy withSaDataSizeKilobytes(int saDataSizeKilobytes)

Set 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 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

IpsecPolicy

public IpsecPolicy()

Method Details

dhGroup

public DhGroup dhGroup()

Get the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.

Returns:

the dhGroup value

ikeEncryption

public IkeEncryption ikeEncryption()

Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.

Returns:

the ikeEncryption value

ikeIntegrity

public IkeIntegrity ikeIntegrity()

Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.

Returns:

the ikeIntegrity value

ipsecEncryption

public IpsecEncryption ipsecEncryption()

Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.

Returns:

the ipsecEncryption value

ipsecIntegrity

public IpsecIntegrity ipsecIntegrity()

Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.

Returns:

the ipsecIntegrity value

pfsGroup

public PfsGroup pfsGroup()

Get the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.

Returns:

the pfsGroup value

saDataSizeKilobytes

public int saDataSizeKilobytes()

Get 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 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

withDhGroup

public IpsecPolicy withDhGroup(DhGroup dhGroup)

Set the DH Group used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'.

Parameters:

dhGroup - the dhGroup value to set

Returns:

the IpsecPolicy object itself.

withIkeEncryption

public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)

Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.

Parameters:

ikeEncryption - the ikeEncryption value to set

Returns:

the IpsecPolicy object itself.

withIkeIntegrity

public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)

Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.

Parameters:

ikeIntegrity - the ikeIntegrity value to set

Returns:

the IpsecPolicy object itself.

withIpsecEncryption

public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)

Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.

Parameters:

ipsecEncryption - the ipsecEncryption value to set

Returns:

the IpsecPolicy object itself.

withIpsecIntegrity

public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)

Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.

Parameters:

ipsecIntegrity - the ipsecIntegrity value to set

Returns:

the IpsecPolicy object itself.

withPfsGroup

public IpsecPolicy withPfsGroup(PfsGroup pfsGroup)

Set the Pfs Group used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'.

Parameters:

pfsGroup - the pfsGroup value to set

Returns:

the IpsecPolicy object itself.

withSaDataSizeKilobytes

public IpsecPolicy withSaDataSizeKilobytes(int saDataSizeKilobytes)

Set 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 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