gravitino.api.credential.credential.Credential

class gravitino.api.credential.credential.Credential

Bases: ABC

Represents the credential in Gravitino.

__init__()

Methods

__init__()

credential_info()

The credential information.

credential_type()

The type of the credential.

expire_time_in_ms()

Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.

abstract credential_info() Dict[str, str]

The credential information.

Returns:

The credential information.

abstract credential_type() str

The type of the credential.

Returns:

the type of the credential.

abstract 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.