Search in sources :

Example 1 with HmacSha1MessageSigner

use of oauth.signpost.signature.HmacSha1MessageSigner in project openhab1-addons by openhab.

the class WithingsAccount method createConsumer.

public OAuthConsumer createConsumer() {
    consumer = new DefaultOAuthConsumer(consumerKey, consumerSecret);
    consumer.setSigningStrategy(new AuthorizationHeaderSigningStrategy());
    consumer.setMessageSigner(new HmacSha1MessageSigner());
    return consumer;
}
Also used : HmacSha1MessageSigner(oauth.signpost.signature.HmacSha1MessageSigner) DefaultOAuthConsumer(oauth.signpost.basic.DefaultOAuthConsumer) AuthorizationHeaderSigningStrategy(oauth.signpost.signature.AuthorizationHeaderSigningStrategy)

Aggregations

DefaultOAuthConsumer (oauth.signpost.basic.DefaultOAuthConsumer)1 AuthorizationHeaderSigningStrategy (oauth.signpost.signature.AuthorizationHeaderSigningStrategy)1 HmacSha1MessageSigner (oauth.signpost.signature.HmacSha1MessageSigner)1