PasswordAuthenticationMode¶
-
class
oci.redis.models.PasswordAuthenticationMode(**kwargs)¶ Bases:
oci.redis.models.authentication_mode.AuthenticationModechild class of AuthenticationMode.
Attributes
AUTHENTICATION_TYPE_IAMstr(object=’’) -> str AUTHENTICATION_TYPE_PASSWORDstr(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_typeattribute of this class isPASSWORDand 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]
-