With this extension to Jersey OAuth 1, one can use her SSH RSA or DSA keys to sign and verify her requests
The current implementation is mainly tested with Jersey 1.16 because that's the version I'm using. The latest 1.x Jersey version is also tested, version 1.18.3 currently.
When using maven as build system, the dependency is:
<dependency>
<groupId>be.hobbiton.jersey</groupId>
<artifactId>oauth-signature-ssh</artifactId>
<version>1.0.1</version>
</dependency>
The artifacts are published in Maven Central
If the JAR file is included on the classpath the SSH RSA OAuth Signature extension should be auto detected. Just use SSH-RSA as the signature method as in:
OAuthParameters params = new OAuthParameters()
.verifier(verifier)
.consumerKey("consumer")
.token(requestToken)
.signatureMethod(SSH_RSA.NAME)
.timestamp()
.nonce()
.version();
For SSH DSA keys use SSH_DSA.NAME.