Package org.apache.poi.poifs.crypt.agile

Examples of org.apache.poi.poifs.crypt.agile.AgileDecryptor


        fs.writeFilesystem(bos);
        bos.close();
       
        fs = new POIFSFileSystem(new ByteArrayInputStream(bos.toByteArray()));
        info = new EncryptionInfo(fs);
        AgileDecryptor agDec = (AgileDecryptor)info.getDecryptor();
        boolean passed = agDec.verifyPassword(certData.keypair, certData.x509);
        assertTrue("certificate verification failed", passed);
       
        fis = agDec.getDataStream(fs);
        byte byteActual[] = IOUtils.toByteArray(fis);
        fis.close();
       
        assertThat(byteExpected, equalTo(byteActual));
    }
View Full Code Here

TOP

Related Classes of org.apache.poi.poifs.crypt.agile.AgileDecryptor

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.