Package org.jitterbit.crypto.pgp

Examples of org.jitterbit.crypto.pgp.MessageIntegrity


            try {
                input = openFile(toDecrypt);
                extractEncryptedDataList(input);
                extractPrivateKeyAndData(decryptionKey, decryptionKeyPassword);
                byte[] decrypted = extractMessage();
                MessageIntegrity integrity = verifyIntegrity();
                return new Result(decrypted, message.getFileName(), authenticationStatus, integrity);
            } finally {
                KongaIoUtils.close(input);
            }
        }
View Full Code Here


                KongaIoUtils.close(outStream);
            }
        }

        private MessageIntegrity verifyIntegrity() throws IOException, PGPException {
            MessageIntegrity status;
            if (encryptedData.isIntegrityProtected()) {
                status = encryptedData.verify() ? MessageIntegrity.INTEGRITY_VERIFIED : MessageIntegrity.INTEGRITY_FAILED;
            } else {
                status = MessageIntegrity.NOT_VERIFIED;
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.crypto.pgp.MessageIntegrity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.