PhaseTwoConfigDetails

class oci.core.models.PhaseTwoConfigDetails(**kwargs)

Bases: object

Configuration details for IPSec phase two configuration parameters.

Attributes:

AUTHENTICATION_ALGORITHM_HMAC_SHA1_128

A constant which can be used with the authentication_algorithm property of a PhaseTwoConfigDetails.

AUTHENTICATION_ALGORITHM_HMAC_SHA2_256_128

A constant which can be used with the authentication_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_128_CBC

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_128_GCM

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_192_CBC

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_192_GCM

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_256_CBC

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

ENCRYPTION_ALGORITHM_AES_256_GCM

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP14

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP19

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP2

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP20

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP24

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

PFS_DH_GROUP_GROUP5

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails.

authentication_algorithm

Gets the authentication_algorithm of this PhaseTwoConfigDetails.

encryption_algorithm

Gets the encryption_algorithm of this PhaseTwoConfigDetails.

is_custom_phase_two_config

Gets the is_custom_phase_two_config of this PhaseTwoConfigDetails.

is_pfs_enabled

Gets the is_pfs_enabled of this PhaseTwoConfigDetails.

lifetime_in_seconds

Gets the lifetime_in_seconds of this PhaseTwoConfigDetails.

pfs_dh_group

Gets the pfs_dh_group of this PhaseTwoConfigDetails.

Methods:

__init__(**kwargs)

Initializes a new PhaseTwoConfigDetails object with values from keyword arguments.

AUTHENTICATION_ALGORITHM_HMAC_SHA1_128 = 'HMAC_SHA1_128'

A constant which can be used with the authentication_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “HMAC_SHA1_128”

AUTHENTICATION_ALGORITHM_HMAC_SHA2_256_128 = 'HMAC_SHA2_256_128'

A constant which can be used with the authentication_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “HMAC_SHA2_256_128”

ENCRYPTION_ALGORITHM_AES_128_CBC = 'AES_128_CBC'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_128_CBC”

ENCRYPTION_ALGORITHM_AES_128_GCM = 'AES_128_GCM'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_128_GCM”

ENCRYPTION_ALGORITHM_AES_192_CBC = 'AES_192_CBC'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_192_CBC”

ENCRYPTION_ALGORITHM_AES_192_GCM = 'AES_192_GCM'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_192_GCM”

ENCRYPTION_ALGORITHM_AES_256_CBC = 'AES_256_CBC'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_256_CBC”

ENCRYPTION_ALGORITHM_AES_256_GCM = 'AES_256_GCM'

A constant which can be used with the encryption_algorithm property of a PhaseTwoConfigDetails. This constant has a value of “AES_256_GCM”

PFS_DH_GROUP_GROUP14 = 'GROUP14'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP14”

PFS_DH_GROUP_GROUP19 = 'GROUP19'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP19”

PFS_DH_GROUP_GROUP2 = 'GROUP2'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP2”

PFS_DH_GROUP_GROUP20 = 'GROUP20'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP20”

PFS_DH_GROUP_GROUP24 = 'GROUP24'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP24”

PFS_DH_GROUP_GROUP5 = 'GROUP5'

A constant which can be used with the pfs_dh_group property of a PhaseTwoConfigDetails. This constant has a value of “GROUP5”

__init__(**kwargs)

Initializes a new PhaseTwoConfigDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • is_custom_phase_two_config (bool) – The value to assign to the is_custom_phase_two_config property of this PhaseTwoConfigDetails.

  • authentication_algorithm (str) – The value to assign to the authentication_algorithm property of this PhaseTwoConfigDetails. Allowed values for this property are: “HMAC_SHA2_256_128”, “HMAC_SHA1_128”

  • encryption_algorithm (str) – The value to assign to the encryption_algorithm property of this PhaseTwoConfigDetails. Allowed values for this property are: “AES_256_GCM”, “AES_192_GCM”, “AES_128_GCM”, “AES_256_CBC”, “AES_192_CBC”, “AES_128_CBC”

  • lifetime_in_seconds (int) – The value to assign to the lifetime_in_seconds property of this PhaseTwoConfigDetails.

  • is_pfs_enabled (bool) – The value to assign to the is_pfs_enabled property of this PhaseTwoConfigDetails.

  • pfs_dh_group (str) – The value to assign to the pfs_dh_group property of this PhaseTwoConfigDetails. Allowed values for this property are: “GROUP2”, “GROUP5”, “GROUP14”, “GROUP19”, “GROUP20”, “GROUP24”

property authentication_algorithm

Gets the authentication_algorithm of this PhaseTwoConfigDetails. The authentication algorithm proposed during phase two tunnel negotiation.

Allowed values for this property are: “HMAC_SHA2_256_128”, “HMAC_SHA1_128”

Returns

The authentication_algorithm of this PhaseTwoConfigDetails.

Return type

str

property encryption_algorithm

Gets the encryption_algorithm of this PhaseTwoConfigDetails. The encryption algorithm proposed during phase two tunnel negotiation.

Allowed values for this property are: “AES_256_GCM”, “AES_192_GCM”, “AES_128_GCM”, “AES_256_CBC”, “AES_192_CBC”, “AES_128_CBC”

Returns

The encryption_algorithm of this PhaseTwoConfigDetails.

Return type

str

property is_custom_phase_two_config

Gets the is_custom_phase_two_config of this PhaseTwoConfigDetails. Indicates whether custom configuration is enabled for phase two options.

Returns

The is_custom_phase_two_config of this PhaseTwoConfigDetails.

Return type

bool

property is_pfs_enabled

Gets the is_pfs_enabled of this PhaseTwoConfigDetails. Indicates whether perfect forward secrecy (PFS) is enabled.

Returns

The is_pfs_enabled of this PhaseTwoConfigDetails.

Return type

bool

property lifetime_in_seconds

Gets the lifetime_in_seconds of this PhaseTwoConfigDetails. Lifetime in seconds for the IPSec session key set in phase two. The default is 3600 which is equivalent to 1 hour.

Returns

The lifetime_in_seconds of this PhaseTwoConfigDetails.

Return type

int

property pfs_dh_group

Gets the pfs_dh_group of this PhaseTwoConfigDetails. The Diffie-Hellman group used for PFS, if PFS is enabled.

Allowed values for this property are: “GROUP2”, “GROUP5”, “GROUP14”, “GROUP19”, “GROUP20”, “GROUP24”

Returns

The pfs_dh_group of this PhaseTwoConfigDetails.

Return type

str