public class IpsecPolicy extends Object
| Constructor and Description |
|---|
IpsecPolicy() |
| 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.
|
public int saLifeTimeSeconds()
public IpsecPolicy withSaLifeTimeSeconds(int saLifeTimeSeconds)
saLifeTimeSeconds - the saLifeTimeSeconds value to setpublic int saDataSizeKilobytes()
public IpsecPolicy withSaDataSizeKilobytes(int saDataSizeKilobytes)
saDataSizeKilobytes - the saDataSizeKilobytes value to setpublic IpsecEncryption ipsecEncryption()
public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption)
ipsecEncryption - the ipsecEncryption value to setpublic IpsecIntegrity ipsecIntegrity()
public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity)
ipsecIntegrity - the ipsecIntegrity value to setpublic IkeEncryption ikeEncryption()
public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption)
ikeEncryption - the ikeEncryption value to setpublic IkeIntegrity ikeIntegrity()
public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity)
ikeIntegrity - the ikeIntegrity value to setpublic DhGroup dhGroup()
public IpsecPolicy withDhGroup(DhGroup dhGroup)
dhGroup - the dhGroup value to setpublic PfsGroup pfsGroup()
public IpsecPolicy withPfsGroup(PfsGroup pfsGroup)
pfsGroup - the pfsGroup value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/