UserPasswordCredentials
classView source ↗
class UserPasswordCredentials(user: str | dict | Secret, password: str | dict | Secret)
Bases: Credentials
Categories: credentials
Credentials class to store a user and password pair.
Attributes: user (Secret): The user. password (Secret): The password.
Methods: to_dict() -> dict: Convert the UserPasswordCredentials object to a dictionary.
Initialize the UserPasswordCredentials object.
Parameters
parameter
userstr | dict | SecretThe user.
parameter
passwordstr | dict | SecretThe password
Properties
property
passwordSecretThe password.
property
userSecretThe user.
Methods
method
View source ↗to_dictdef to_dict() -> dict
Convert the UserPasswordCredentials object to a dictionary.
Returns:
dict: A dictionary representation of the UserPasswordCredentials object.