HMACCredentials
classView source ↗
class HMACCredentials(access_key: str | Secret, secret_key: str | Secret)
Bases: Credentials
Categories: credentials
Generic HMAC credentials consisting of an access key and a secret key.
These credentials follow the same shape as AWS S3 access keys and are compatible with any service that uses HMAC-based authentication over the S3-compatible API, such as GCS HMAC keys or MinIO credentials.
Attributes: access_key (Secret): The HMAC access key id. secret_key (Secret): The HMAC secret key.
Methods: to_dict() -> dict: Convert the HMACCredentials object to a dictionary.
Initialize the HMACCredentials object.
Parameters
parameter
access_keystr | SecretThe HMAC access key id.
parameter
secret_keystr | SecretThe HMAC secret key.
Properties
property
access_keySecretThe HMAC access key id.
property
secret_keySecretThe HMAC secret key.