Skip to main content
Version: 0.9.6

UserPasswordCredentials

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 | Secret

The user.

parameter
passwordstr | dict | Secret

The password

Properties

property
passwordSecret

The password.

property
userSecret

The user.

Methods

to_dict
def to_dict() -> dict

Convert the UserPasswordCredentials object to a dictionary.

Returns:

dict: A dictionary representation of the UserPasswordCredentials object.