return getRuntime().getNil();
}
@JRubyMethod
public IRubyObject add_signer(IRubyObject obj) {
SignerInfoWithPkey p7si = ((SignerInfo)obj).getSignerInfo().dup();
try {
p7.addSigner(p7si);
} catch (PKCS7Exception pkcse) {
throw newPKCS7Exception(getRuntime(), pkcse);
}
// TODO: Handle exception here
if(p7.isSigned()) {
p7si.addSignedAttribute(ASN1Registry.NID_pkcs9_contentType, ASN1Registry.nid2obj(ASN1Registry.NID_pkcs7_data));
}
return this;
}