Interface EncryptionBuilderInterface.Armor
-
- Enclosing interface:
- EncryptionBuilderInterface
public static interface EncryptionBuilderInterface.Armor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptionStreamasciiArmor()Wrap the encrypted/signed output in an ASCII armor.EncryptionStreamnoArmor()Do not wrap the output in an ASCII armor.
-
-
-
Method Detail
-
asciiArmor
EncryptionStream asciiArmor() throws java.io.IOException, org.bouncycastle.openpgp.PGPException
Wrap the encrypted/signed output in an ASCII armor. This can come in handy for sending the encrypted message via eg. email.- Returns:
- encryption stream
- Throws:
java.io.IOException- in case some I/O error occursorg.bouncycastle.openpgp.PGPException- in case of some malformed pgp data
-
noArmor
EncryptionStream noArmor() throws java.io.IOException, org.bouncycastle.openpgp.PGPException
Do not wrap the output in an ASCII armor.- Returns:
- encryption stream
- Throws:
java.io.IOException- in case some I/O error occursorg.bouncycastle.openpgp.PGPException- in case of some malformed pgp data
-
-