package testgenerator; import iaik.asn1.CodingException; import iaik.asn1.ObjectID; import iaik.asn1.structures.AlgorithmID; import iaik.asn1.structures.Attribute; import iaik.asn1.structures.ChoiceOfTime; import iaik.cms.CMSException; import iaik.cms.ContentInfoStream; import iaik.cms.SignedDataStream; import iaik.cms.SignerInfo; import iaik.utils.StreamCopier; import iaik.x509.X509Certificate; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.security.KeyStore; import java.security.Provider; import java.security.Security; import java.security.SignatureException; /** * @author Administrator * * To change this generated comment edit the template variable "typecomment": * Window>Preferences>Java>Templates. * To enable and disable the creation of type comments go to * Window>Preferences>Java>Code Generation. */ public class TestCMS { public static void main(String[] args) { try { iaik.security.provider.IAIK.addAsProvider(true); Provider [] list = Security.getProviders(); for(int counter=0;counter