There are a few Java libraries out there for OAuth. Specifically, I’d have a look at this one. I haven’t used it myself, but there is an example for running an OAuth Service Provider.
There’s a list of libraries available on the OAuth website: http://oauth.net/code