Package org.bouncycastle.cms

Examples of org.bouncycastle.cms.CMSCompressedDataGenerator.generate()


    {
        CMSProcessableByteArray testData = new CMSProcessableByteArray(
                "Hello world!".getBytes());
        CMSCompressedDataGenerator gen = new CMSCompressedDataGenerator();

        CMSCompressedData cd = gen.generate(testData,
                CMSCompressedDataGenerator.ZLIB);

        assertEquals(true, Arrays.equals((byte[])testData.getContent(), cd
                .getContent()));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.