1 7 8 9 package org.enhydra.oyster.cms; 10 11 import org.enhydra.oyster.exception.SMIMEException; 12 import org.enhydra.oyster.der.DERSetPr; 13 import java.security.cert.X509Certificate ; 14 15 16 39 public class RecipientInfos extends DERSetPr { 40 41 44 private byte[] symmetricKey; 45 46 52 public RecipientInfos (byte[] symKey0) throws SMIMEException 53 { 54 symmetricKey = symKey0; 55 } 56 57 64 public void addRecipient (X509Certificate cert0) throws SMIMEException { 65 KeyTransRecipientInfo keyTrans = new KeyTransRecipientInfo(symmetricKey); 66 keyTrans.addRecipient(cert0); 67 super.addContent(keyTrans.getDEREncoded()); 68 } 69 } 70 71 72 73 | Popular Tags |