Thank you for your reply Paulo.
I haven't a timestamp, the acrobat reader is showing to me the warning of
the signature is from the signer's computer.
I've tried to put a null into the Signer Date with something like this...
PdfSigGenericPKCS sig = sigApp.getSigStandard();
PdfLiteral lit = (PdfLiteral)sig.get(PdfName.CONTENTS);
int totalBuf = (lit.getPosLength() - 2) / 2;
byte buf[] = new byte[8192];
int n;
InputStream inp = sigApp.getRangeStream();
try {
sig.getSigner().setSignDate(null);
while ((n = inp.read(buf)) > 0) {
sig.getSigner().update(buf, 0, n);
}
}
catch (SignatureException se) {
throw new ExceptionConverter(se);
}
But it doesn't seem to work. Any idea?
Paulo Soares wrote:
>
> You can remove the date unless you have a timestamp, of course.
>
> Paulo
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Javier Aparicio Conesa
>> Sent: Tuesday, January 16, 2007 11:15 AM
>> To: [email protected]
>> Subject: [iText-questions] Removing or hidding date from a
>> non visiblesignature
>>
>>
>> Hi,
>> Does anyone knows if that is possible?
>> I understand this is a mandatory field in the PKCS7
>> specification and we can't sweep it out, isn't it?
>>
>> Thank you in advance!
>> Javier
>>
>>
>> --
>>
>>
>> Autoridad de Certificación de la Comunidad Valenciana
>> <http://www.accv.es>
>>
>> Javier Aparicio
>>
>> c/Colón, 66 1ª Planta - 46004 Valencia
>>
>> [EMAIL PROTECTED]
>>
>> Tel: 961961168
>>
>>
>
>
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
--
View this message in context:
http://www.nabble.com/Removing-or-hidding-date-from-a-non-visible-signature-tf3020362.html#a8389693
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/