KeyserverClient

@Singleton
class KeyserverClient @Inject constructor

HTTP client for OpenPGP keyserver lookup and upload.

Supports VKS (keys.openpgp.org style) endpoints for fetch and upload, with HKP fallback when VKS is unavailable. Lookup accepts email addresses, fingerprints, and key ids.

Constructors

Link copied to clipboard
@Inject
constructor()

Functions

Link copied to clipboard
fun fetchKey(baseUrl: String, query: String): ByteArray

Fetches an armored public key from baseUrl matching query.

Link copied to clipboard
fun uploadPublicKey(baseUrl: String, armoredPublic: ByteArray)

Uploads armored public key material to baseUrl.