public class PGPEncryptor extends AbstractPGPProcessor
_log| Constructor and Description |
|---|
PGPEncryptor()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encryptBytes(byte[] toEncrypt,
File publicKeyFile) |
byte[] |
encryptBytes(byte[] toEncrypt,
InputStream publicKeyStream) |
byte[] |
encryptBytes(byte[] toEncrypt,
org.bouncycastle.openpgp.PGPPublicKey publicKey) |
void |
encryptStream(InputStream toEncrypt,
OutputStream encrypted,
File publicKeyFile) |
void |
encryptStream(InputStream toEncrypt,
OutputStream encrypted,
InputStream publicKeyStream) |
void |
encryptStream(InputStream toEncrypt,
OutputStream encrypted,
org.bouncycastle.openpgp.PGPPublicKey publicKey) |
org.bouncycastle.openpgp.PGPPublicKey |
readPublicKeyFromKeyringCollection(File publicKeyFile) |
org.bouncycastle.openpgp.PGPPublicKey |
readPublicKeyFromKeyringCollection(InputStream publicKeyStream) |
public byte[] encryptBytes(byte[] toEncrypt,
File publicKeyFile)
throws IOException,
KeyringException,
org.bouncycastle.openpgp.PGPException,
NoSuchProviderException
IOExceptionKeyringExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic byte[] encryptBytes(byte[] toEncrypt,
InputStream publicKeyStream)
throws IOException,
KeyringException,
org.bouncycastle.openpgp.PGPException,
NoSuchProviderException
IOExceptionKeyringExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic byte[] encryptBytes(byte[] toEncrypt,
org.bouncycastle.openpgp.PGPPublicKey publicKey)
throws IOException,
org.bouncycastle.openpgp.PGPException,
NoSuchProviderException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic void encryptStream(InputStream toEncrypt, OutputStream encrypted, File publicKeyFile) throws IOException, KeyringException, org.bouncycastle.openpgp.PGPException, NoSuchProviderException
IOExceptionKeyringExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic void encryptStream(InputStream toEncrypt, OutputStream encrypted, InputStream publicKeyStream) throws IOException, KeyringException, org.bouncycastle.openpgp.PGPException, NoSuchProviderException
IOExceptionKeyringExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic void encryptStream(InputStream toEncrypt, OutputStream encrypted, org.bouncycastle.openpgp.PGPPublicKey publicKey) throws IOException, org.bouncycastle.openpgp.PGPException, NoSuchProviderException
IOExceptionorg.bouncycastle.openpgp.PGPExceptionNoSuchProviderExceptionpublic org.bouncycastle.openpgp.PGPPublicKey readPublicKeyFromKeyringCollection(File publicKeyFile) throws IOException, KeyringAccessException, org.bouncycastle.openpgp.PGPException
IOExceptionKeyringAccessExceptionorg.bouncycastle.openpgp.PGPExceptionpublic org.bouncycastle.openpgp.PGPPublicKey readPublicKeyFromKeyringCollection(InputStream publicKeyStream) throws IOException, KeyringAccessException, org.bouncycastle.openpgp.PGPException
IOExceptionKeyringAccessExceptionorg.bouncycastle.openpgp.PGPExceptionCopyright © 2014. All rights reserved.