public static ContentInfo getInstance( Object obj) { if (obj instanceof ContentInfo) { return (ContentInfo)obj; } if (obj != null) { return new ContentInfo(ASN1Sequence.getInstance(obj)); } return null; }
public static ContentInfo getInstance( Object obj) { if (obj instanceof ContentInfo) { return (ContentInfo)obj; } if (obj != null) { return new ContentInfo(ASN1Sequence.getInstance(obj)); } return null; }
ContentInfo encInfo = new ContentInfo(PKCSObjectIdentifiers.data, null); new DERSet()); return toDEREncoded(new ContentInfo( PKCSObjectIdentifiers.signedData, sd));
ContentInfo encInfo = new ContentInfo(PKCSObjectIdentifiers.data, null); new DERSet()); return toDEREncoded(new ContentInfo( PKCSObjectIdentifiers.signedData, sd));
/** * Add a SafeBag that is to be included as is. * * @param data the SafeBag to add. * @return this builder. * @throws IOException */ public PKCS12PfxPduBuilder addData(PKCS12SafeBag data) throws IOException { dataVector.add(new ContentInfo(PKCSObjectIdentifiers.data, new DEROctetString(new DLSequence(data.toASN1Structure()).getEncoded()))); return this; }
/** * Add a SafeBag that is to be included as is. * * @param data the SafeBag to add. * @return this builder. * @throws IOException */ public PKCS12PfxPduBuilder addData(PKCS12SafeBag data) throws IOException { dataVector.add(new ContentInfo(PKCSObjectIdentifiers.data, new DEROctetString(new DLSequence(data.toASN1Structure()).getEncoded()))); return this; }
ContentInfo mainInfo = new ContentInfo(PKCSObjectIdentifiers.data, new DEROctetString(encAuth)); MacData mData = null;
ContentInfo mainInfo = new ContentInfo(PKCSObjectIdentifiers.data, new DEROctetString(encAuth)); MacData mData = null;
info = new ContentInfo(info.getContentType(), new DEROctetString(bOut.toByteArray()));
info = new ContentInfo(info.getContentType(), new DEROctetString(bOut.toByteArray()));
new ContentInfo(data, keyString), new ContentInfo(encryptedData, cInfo.toASN1Primitive()) }; ContentInfo mainInfo = new ContentInfo(data, new BEROctetString(pkg));
new ContentInfo(data, keyString), new ContentInfo(encryptedData, cInfo.toASN1Primitive()) }; ContentInfo mainInfo = new ContentInfo(data, new BERConstructedOctetString(pkg));