use of org.bouncycastle.cms.SimpleAttributeTableGenerator in project nhin-d by DirectProject.
the class SplitProviderDirectSignedDataGenerator method addSigner.
/**
* {@inheritDoc}
*/
@Override
public void addSigner(PrivateKey key, X509Certificate cert, String digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr) throws IllegalArgumentException {
final String encOID = getEncOID(key, digestOID);
privateSigners.add(new DirectTargetedSignerInf(key, cert, digestOID, encOID, new DefaultSignedAttributeTableGenerator(signedAttr), new SimpleAttributeTableGenerator(unsignedAttr), signedAttr));
}
Aggregations