KeySizeAlgorithm

class oci.jms.models.KeySizeAlgorithm(**kwargs)

Bases: object

The algorithm object with name and key size properties.

Attributes

NAME_DH A constant which can be used with the name property of a KeySizeAlgorithm.
NAME_DSA A constant which can be used with the name property of a KeySizeAlgorithm.
NAME_EC A constant which can be used with the name property of a KeySizeAlgorithm.
NAME_RSA A constant which can be used with the name property of a KeySizeAlgorithm.
key_size Gets the key_size of this KeySizeAlgorithm.
name Gets the name of this KeySizeAlgorithm.

Methods

__init__(**kwargs) Initializes a new KeySizeAlgorithm object with values from keyword arguments.
NAME_DH = 'DH'

A constant which can be used with the name property of a KeySizeAlgorithm. This constant has a value of “DH”

NAME_DSA = 'DSA'

A constant which can be used with the name property of a KeySizeAlgorithm. This constant has a value of “DSA”

NAME_EC = 'EC'

A constant which can be used with the name property of a KeySizeAlgorithm. This constant has a value of “EC”

NAME_RSA = 'RSA'

A constant which can be used with the name property of a KeySizeAlgorithm. This constant has a value of “RSA”

__init__(**kwargs)

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

Parameters:
  • name (str) – The value to assign to the name property of this KeySizeAlgorithm. Allowed values for this property are: “RSA”, “DSA”, “EC”, “DH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • key_size (int) – The value to assign to the key_size property of this KeySizeAlgorithm.
key_size

Gets the key_size of this KeySizeAlgorithm. Key size for the encryption algorithm. Allowed values: 256 for EC, 2048 for DH/DSA/RSA

Returns:The key_size of this KeySizeAlgorithm.
Return type:int
name

Gets the name of this KeySizeAlgorithm. The algorithm name.

Allowed values for this property are: “RSA”, “DSA”, “EC”, “DH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The name of this KeySizeAlgorithm.
Return type:str