2010-10-22 17 views

Répondre

1

Terminé.

CMSSignedData csd = new CMSSignedData(byteArr); 

if (csd.getSignedContent() == null) { 
      byte[] contentBytes; 
      if (!isIE) { 
       contentBytes = data.getBytes(); 
      } else { 
       //UnicodeLittleUnmarked = Sixteen-bit Unicode Transformation Format, little-endian byte order 
       contentBytes = data.getBytes("UnicodeLittleUnmarked"); 
      } 
      CMSProcessable cmsProcesableContent = new CMSProcessableByteArray(contentBytes); 
      csd = new CMSSignedData(cmsProcesableContent, byteArr); 
     }