gravitino.api.credential.oss_token_credential.OSSTokenCredential¶
- class gravitino.api.credential.oss_token_credential.OSSTokenCredential(credential_info: Dict[str, str], expire_time_in_ms: int)¶
Bases:
Credential
,ABC
Represents OSS token 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.
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.
The OSS security token.
Attributes
OSS_TOKEN_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 ¶
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.
- security_token() str ¶
The OSS security token.
- Returns:
The OSS security token.