Skip to content

gertux/oauth-signature-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jersey OAuth 1 signature extension for SSH keys

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.

Maven

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

Usage

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.

About

SSH OAuth 1 Signature extension for Jersey

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages