PasswordAuthenticationMode

class oci.redis.models.PasswordAuthenticationMode(**kwargs)

Bases: AuthenticationMode

child class of AuthenticationMode.

Attributes:

AUTHENTICATION_TYPE_IAM

A constant which can be used with the authentication_type property of a AuthenticationMode.

AUTHENTICATION_TYPE_PASSWORD

A constant which can be used with the authentication_type property of a AuthenticationMode.

authentication_type

[Required] Gets the authentication_type of this AuthenticationMode.

hashed_passwords

[Required] Gets the hashed_passwords of this PasswordAuthenticationMode.

Methods:

__init__(**kwargs)

Initializes a new PasswordAuthenticationMode object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

AUTHENTICATION_TYPE_IAM = 'IAM'

A constant which can be used with the authentication_type property of a AuthenticationMode. This constant has a value of “IAM”

AUTHENTICATION_TYPE_PASSWORD = 'PASSWORD'

A constant which can be used with the authentication_type property of a AuthenticationMode. This constant has a value of “PASSWORD”

__init__(**kwargs)

Initializes a new PasswordAuthenticationMode object with values from keyword arguments. The default value of the authentication_type attribute of this class is PASSWORD and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • authentication_type (str) – The value to assign to the authentication_type property of this PasswordAuthenticationMode. Allowed values for this property are: “IAM”, “PASSWORD”

  • hashed_passwords (list[str]) – The value to assign to the hashed_passwords property of this PasswordAuthenticationMode.

property authentication_type

[Required] Gets the authentication_type of this AuthenticationMode. This is Authentication Type of OCI cache user

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

Returns

The authentication_type of this AuthenticationMode.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property hashed_passwords

[Required] Gets the hashed_passwords of this PasswordAuthenticationMode. SHA-256 hashed passwords for OCI Cache user,required if authenticationType is set to PASSWORD.

Returns

The hashed_passwords of this PasswordAuthenticationMode.

Return type

list[str]