ExportToStream Method
Writes the key to a stream.
Syntax
public void exportToStream(int keyType, java.io.OutputStream stream, String password);
Remarks
Use this method to save Key in the stream specified by Stream. KeyType specifies the format in which the key should be stored, and Password specifies a password to decrypt the private key.
Allowed key types:
cktPrivate | 0 | A private key |
cktPublic | 1 | A public key |