use of com.google.api.client.auth.oauth.OAuthHmacSigner in project google-oauth-java-client by googleapis.
the class OAuthHmacCredential method postConstruct.
private void postConstruct() {
OAuthHmacSigner signer = new OAuthHmacSigner();
signer.clientSharedSecret = sharedSecret;
signer.tokenSharedSecret = tokenSharedSecret;
authorizer = new OAuthParameters();
authorizer.consumerKey = consumerKey;
authorizer.signer = signer;
authorizer.token = token;
}
use of com.google.api.client.auth.oauth.OAuthHmacSigner in project che-server by eclipse-che.
the class OAuthAuthenticator method getOAuthHmacSigner.
private OAuthHmacSigner getOAuthHmacSigner(@Nullable String clientSecret, @Nullable String oauthTemporaryToken) throws NoSuchAlgorithmException, InvalidKeySpecException {
final OAuthHmacSigner signer = new OAuthHmacSigner();
signer.clientSharedSecret = clientSecret;
signer.tokenSharedSecret = sharedTokenSecrets.remove(oauthTemporaryToken);
return signer;
}
use of com.google.api.client.auth.oauth.OAuthHmacSigner in project devspaces-images by redhat-developer.
the class OAuthAuthenticator method getOAuthHmacSigner.
private OAuthHmacSigner getOAuthHmacSigner(@Nullable String clientSecret, @Nullable String oauthTemporaryToken) throws NoSuchAlgorithmException, InvalidKeySpecException {
final OAuthHmacSigner signer = new OAuthHmacSigner();
signer.clientSharedSecret = clientSecret;
signer.tokenSharedSecret = sharedTokenSecrets.remove(oauthTemporaryToken);
return signer;
}
Aggregations