CryptoContext.importKeys

Imports a stream of keys/certificates contained within istream into the key/certificate database controlled by ctx.

class CryptoContext
int
importKeys

Parameters

istream gmime.stream.Stream

input stream (containing keys)

Return Value

Type: int

the total number of keys imported on success or %-1 on fail.

Throws