PgpShieldClient

interface PgpShieldClient

Suspend API for encrypt, decrypt, sign, and key listing on behalf of a calling app.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun checkPermission(caller: CallerIdentity): PermissionState

Checks whether caller may use crypto APIs and whether user consent is required.

Link copied to clipboard
abstract suspend fun decrypt(request: DecryptRequestParcel): CryptoResultParcel

Decrypts ciphertext with the specified decrypt key and optional passphrase.

Link copied to clipboard
abstract suspend fun encrypt(request: EncryptRequestParcel): CryptoResultParcel

Encrypts plaintext for the given recipient key ids.

Link copied to clipboard
abstract suspend fun listKeys(packageName: String): List<KeySummaryParcel>

Lists key summaries visible to packageName per API grant policy.

Link copied to clipboard
abstract suspend fun sign(request: SignRequestParcel): CryptoResultParcel

Signs data with the specified signing key and optional passphrase.