zhuzengpeng / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

New API - DefaultCallbackHandler and PollingListener #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Are there any working examples for the new callback handlers? 

I would like to if possible to configure the Quartz schedular to control when 
the client polls the SCEP server for the CERT_ISSUED status. Alternately, is it 
possible to persist the transaction request via a queuing mechanism so that it 
can be invoked at a later stage. The SCEP service I'm using could take anything 
from a few seconds to a few weeks to issue the cert.

Original issue reported on code.google.com by carl.bou...@gmail.com on 9 Aug 2012 at 6:45

GoogleCodeExporter commented 9 years ago
The polling listener is not guaranteed to make it to the next release - the API 
is still being finalised.  I'm having to give it a lot of thought to make sure 
we get it just right.

If you want to try it out any way, given that statement, look at the source 
here:

http://code.google.com/p/jscep/source/browse/#svn%2Ftrunk%2Fsrc%2Fmain%2Fjava%2F
org%2Fjscep%2Fclient%2Fpolling

The callback handler mechanism will definitely be in the next release.  See the 
source from some verifiers here:

http://code.google.com/p/jscep/source/browse/#svn%2Ftrunk%2Fsrc%2Fmain%2Fjava%2F
org%2Fjscep%2Fclient%2Fverification

I'm not sure this is a defect, but I'll keep this here until I've added some 
documentation.

Original comment by da...@grant.org.uk on 9 Aug 2012 at 7:25

GoogleCodeExporter commented 9 years ago
>I'm not sure this is a defect, but I'll keep this here until I've added some 
documentation.

Yeah, I had a problem posting to the Google groups support forum. I've sorted 
it now though.

Could you comment on this bit please:-

is it possible to persist the transaction request via a queuing mechanism so 
that it can be invoked at a later stage. The SCEP service I'm using could take 
anything from a few seconds to a few weeks to issue the cert.

Regards

Original comment by carl.bou...@gmail.com on 9 Aug 2012 at 7:54

GoogleCodeExporter commented 9 years ago
I emailed you directly:

All you need for a poll is the issuer and subject.  If you store the key and 
certificate used to identify your client, plus the X500 name for the 
certificate, you should have enough to poll.  Would you mind adding a defect to 
make TransactionId serializable?

Original comment by da...@grant.org.uk on 9 Aug 2012 at 7:57

GoogleCodeExporter commented 9 years ago
Excellent, how would I go about creating an independent poll that's separate to 
the initial enrolment transaction? 

Original comment by carl.bou...@gmail.com on 9 Aug 2012 at 11:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1439.

Original comment by da...@grant.org.uk on 11 Aug 2012 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 21 Aug 2012 at 11:56