Class IpsecPolicy

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

public class IpsecPolicy extends Object
An IPSec Policy configuration for a virtual network gateway connection.
  • Constructor Details

    • IpsecPolicy

      public IpsecPolicy()
  • Method Details

    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.
    • 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
    • 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.