Skip to content

Authentication with Jersey 2

Chain and lock
Image courtesy of Gualberto107 at FreeDigitalPhotos.net

When creating various web services such as a REST service authentication tends to become relevant sooner or later. In some┬ácases you want to integrate into existing services such as Google+ using OAuth in other cases – like here – you would rather have your own security schemes.

In searching for ways to do this I ran into a lot of older articles, which although being useful, often provided slightly outdated information or only half examples. This aims to provide a fully working basic example, with a complete source code for assistance. Basic example here means just enough to prove and show the concepts and enough to be used as a start for more advanced code.

Continue reading "Authentication with Jersey 2"

Warning: Use of undefined constant CHARSET_NATIVE - assumed 'CHARSET_NATIVE' (this will throw an Error in a future version of PHP) in /usr/home/rohdef/www/rohdef.dk/serendipity_config.inc.php on line 179