Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to implement PAP and CHAP based authentication in my Java project how can I implement ? is there any API available in Java for using that protocol ?

share|improve this question
Warning: PAP and CHAP have security problems. If you're forced to use them by a legacy system you have to interoperate with, well, so be it -- but if you're building a new system and have the choice, I do not recommend their use. It is better to use TLS. – D.W. Feb 24 '12 at 6:55
What is TLS ? and please elaborate that how should I use that ? – Bhavik Ambani Feb 25 '12 at 4:35
Thanks for your interest, Bhavik! Allow me to point out the "Search" bar in the upper-right on this site. It is sometimes useful in answering questions like yours. For instance, here's the second result for a search for "what is TLS?" on this site: What's the difference between SSL, TLS, and HTTPS?. And the first result for a search on "TLS" on Wikipedia also gives good information: Transport Layer Security. – D.W. Feb 25 '12 at 5:48
Thans for the details, now the question is how can I implement that thing in my java project ? Have you ever implemented this things ? – Bhavik Ambani Feb 25 '12 at 6:01
sorry, but this is the wrong place to ask that question: it is probably out of scope for this site. A web search should turn up plenty of information about how to implement TLS. Try searching on Stack Overflow, too (hint: try a search on adding TLS on Stack Overflow). – D.W. Feb 25 '12 at 6:16
up vote 1 down vote accepted

This may be what you're looking for:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.