PasswordAuthenticationMode

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

Bases: oci.redis.models.authentication_mode.AuthenticationMode

child class of AuthenticationMode.

Attributes

AUTHENTICATION_TYPE_IAM str(object=’’) -> str
AUTHENTICATION_TYPE_PASSWORD str(object=’’) -> str
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'
AUTHENTICATION_TYPE_PASSWORD = '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.
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.

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]