Package org.bouncycastle.cms

Examples of org.bouncycastle.cms.CMSCompressedDataGenerator


    public void testEach()
        throws Exception
    {
        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

Related Classes of org.bouncycastle.cms.CMSCompressedDataGenerator

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.