Did you check here:
https://jersey.java.net/documentation/2.7/security.html#d0e10792 ?
First step in enabling Jersey OAuth 1 support is to register a OAuth1ServerFeature instance initialized with an instance of OAuth1Provider. Additionally, you may configure theRequest Token URI and Access Token URI - the endpoints accessible on the OAuth server that issue Request and Access Tokens. These endpoints are defined in the OAuth 1 specification and are contacted as part of the OAuth authorization flow.
Next, when a client initiates the OAuth authorization flow, the provided implementation of OAuth1Provider will be invoked as to create new tokens, get tokens and finally to store issued Access Token. If a consumer already has a valid Access Token and makes Authenticated Requests (with OAuth 1 Authorization information in the HTTP header), the provider will be invoked to provide the OAuth1Token for the Access Token information in the header.
Marek
P.S. It should be obvious from the above, but you need to implement the OAuth1Provider that takes care of token management yourself.
On 30 Mar 2014, at 21:12, Jonathan Welzel <jnwelzel_at_gmail.com> wrote:
> Hi!
>
> I've been searching everywhere for a Jersey Oauth 1 Server example but so far with no success. The documentation is very superficial and offers no details as to how to implement the logic on the server. All I could find were samples for OAuth clients using Jersey.
>
> All I wanna do is secure my REST resources using OAuth. If any of you could point me in the right direction I'd be very grateful.
>
> regards
>
> --
> Jonathan Welzel