gravitino.api.credential.oss_secret_key_credential.OSSSecretKeyCredential¶
- class gravitino.api.credential.oss_secret_key_credential.OSSSecretKeyCredential(credential_info: Dict[str, str], expire_time_in_ms: int)¶
Bases:
Credential
,ABC
Represents OSS secret key credential.
- __init__(credential_info: Dict[str, str], expire_time_in_ms: int)¶
Methods
__init__
(credential_info, expire_time_in_ms)The OSS access key ID.
The credential information.
Returns the type of the credential.
Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.
The OSS secret access key.
Attributes
OSS_SECRET_KEY_CREDENTIAL_TYPE
- access_key_id() str ¶
The OSS access key ID.
- Returns:
The OSS access key ID.
- credential_info() Dict[str, str] ¶
The credential information.
- Returns:
The credential information.
- credential_type() str ¶
Returns the type of the credential.
- Returns:
The type of the credential.
- expire_time_in_ms() int ¶
Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.
- Returns:
The expiration time of the credential.
- secret_access_key() str ¶
The OSS secret access key.
- Returns:
The OSS secret access key.