Interface EncryptionBuilderInterface.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 occurs
        org.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 occurs
        org.bouncycastle.openpgp.PGPException - in case of some malformed pgp data