CryptoContext.exportKeys

Exports the keys/certificates in keys to the stream ostream from the key/certificate database controlled by ctx.

If keys is null or contains only a null element, then all keys will be exported.

class CryptoContext
int
exportKeys

Parameters

keys string[]

an array of key ids, terminated by a null element

ostream gmime.stream.Stream

output stream

Return Value

Type: int

0 on success or %-1 on fail.

Throws