public class PGPEncryptionUtil extends Object
Constructor and Description |
---|
PGPEncryptionUtil(org.bouncycastle.openpgp.PGPPublicKey key,
String payloadFilename,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the encrypted output writers.
|
int |
getPayloadEncryptAlg() |
OutputStream |
getPayloadOutputStream()
Get an output stream connected to the encrypted file payload.
|
boolean |
isArmor() |
boolean |
isCompressData() |
boolean |
isSupportPGP2_6() |
void |
setArmor(boolean isArmor) |
void |
setCompressData(boolean isCompressData) |
void |
setPayloadEncryptAlg(int payloadEncryptAlg) |
void |
setSupportPGP2_6(boolean supportPGP2_6) |
public PGPEncryptionUtil(org.bouncycastle.openpgp.PGPPublicKey key, String payloadFilename, OutputStream out) throws org.bouncycastle.openpgp.PGPException, NoSuchProviderException, IOException
org.bouncycastle.openpgp.PGPException
NoSuchProviderException
IOException
public OutputStream getPayloadOutputStream()
public void close() throws IOException
IOException
- - stream handling had a problempublic boolean isCompressData()
public void setCompressData(boolean isCompressData)
public boolean isSupportPGP2_6()
public void setSupportPGP2_6(boolean supportPGP2_6)
public int getPayloadEncryptAlg()
public void setPayloadEncryptAlg(int payloadEncryptAlg)
public boolean isArmor()
public void setArmor(boolean isArmor)
Copyright © 2018. All rights reserved.