IpsecPolicy Class
- java.
lang. Object - com.
microsoft. azure. management. network. IpsecPolicy
- com.
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 |
---|---|
Dh |
dhGroup()
Get the DH Group used in IKE Phase 1 for initial SA. |
Ike |
ikeEncryption()
Get the IKE encryption algorithm (IKE phase 2). |
Ike |
ikeIntegrity()
Get the IKE integrity algorithm (IKE phase 2). |
Ipsec |
ipsecEncryption()
Get the IPSec encryption algorithm (IKE phase 1). |
Ipsec |
ipsecIntegrity()
Get the IPSec integrity algorithm (IKE phase 1). |
Pfs |
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. |
Ipsec |
withDhGroup(DhGroup dhGroup)
Set the DH Group used in IKE Phase 1 for initial SA. |
Ipsec |
withIkeEncryption(IkeEncryption ikeEncryption)
Set the IKE encryption algorithm (IKE phase 2). |
Ipsec |
withIkeIntegrity(IkeIntegrity ikeIntegrity)
Set the IKE integrity algorithm (IKE phase 2). |
Ipsec |
withIpsecEncryption(IpsecEncryption ipsecEncryption)
Set the IPSec encryption algorithm (IKE phase 1). |
Ipsec |
withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
Set the IPSec integrity algorithm (IKE phase 1). |
Ipsec |
withPfsGroup(PfsGroup pfsGroup)
Set the Pfs Group used in IKE Phase 2 for new child SA. |
Ipsec |
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. |
Ipsec |
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
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:
ikeEncryption
public IkeEncryption ikeEncryption()
Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'.
Returns:
ikeIntegrity
public IkeIntegrity ikeIntegrity()
Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
Returns:
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:
ipsecIntegrity
public IpsecIntegrity ipsecIntegrity()
Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Returns:
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:
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:
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:
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:
Returns:
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:
Returns:
withIkeIntegrity
public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)
Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'.
Parameters:
Returns:
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:
Returns:
withIpsecIntegrity
public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java