PgpShieldClientImpl

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

Call connect once before other methods; the connection is torn down on coroutine cancellation.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun checkPermission(caller: CallerIdentity): PermissionState
Link copied to clipboard
suspend fun connect()

Binds to the PGP Shield service and waits until the AIDL stub is ready.

Link copied to clipboard
open suspend override fun decrypt(request: DecryptRequestParcel): CryptoResultParcel
Link copied to clipboard
open suspend override fun encrypt(request: EncryptRequestParcel): CryptoResultParcel
Link copied to clipboard
open suspend override fun listKeys(packageName: String): List<KeySummaryParcel>
Link copied to clipboard
open suspend override fun sign(request: SignRequestParcel): CryptoResultParcel