Package-level declarations

Types

Link copied to clipboard
data class CallerIdentity(val packageName: String, val uid: Int) : Parcelable

Identifies the calling Android app for permission checks.

Link copied to clipboard
data class CryptoResultParcel(val success: Boolean, val output: ByteArray? = null, val errorMessage: String? = null, val requiresUserInteraction: Boolean = false) : Parcelable

Unified success/failure result for encrypt, decrypt, and sign operations.

Link copied to clipboard
data class DecryptRequestParcel(val caller: CallerIdentity, val ciphertext: ByteArray, val decryptKeyId: Long, val passphrase: CharArray? = null) : Parcelable

Decrypt request passed to the bound service.

Link copied to clipboard
data class EncryptRequestParcel(val caller: CallerIdentity, val plaintext: ByteArray, val recipientKeyIds: LongArray, val asciiArmor: Boolean = true) : Parcelable

Encrypt request passed to the bound service.

Link copied to clipboard
data class KeySummaryParcel(val masterKeyId: Long, val fingerprint: String, val primaryUserId: String?, val isSecret: Boolean) : Parcelable

Minimal key metadata exposed to API clients.

Link copied to clipboard

Result of a permission check for an API caller.

Link copied to clipboard
interface PgpShieldClient

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

Link copied to clipboard

AIDL-backed PgpShieldClient that binds to SERVICE_ACTION in the host app package.

Link copied to clipboard
data class SignRequestParcel(val caller: CallerIdentity, val data: ByteArray, val signKeyId: Long, val passphrase: CharArray? = null) : Parcelable

Sign request passed to the bound service.