Search in sources :

Example 6 with OAuthHmacSigner

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;
}
Also used : OAuthHmacSigner(com.google.api.client.auth.oauth.OAuthHmacSigner) OAuthParameters(com.google.api.client.auth.oauth.OAuthParameters)

Example 7 with OAuthHmacSigner

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;
}
Also used : OAuthHmacSigner(com.google.api.client.auth.oauth.OAuthHmacSigner)

Example 8 with OAuthHmacSigner

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;
}
Also used : OAuthHmacSigner(com.google.api.client.auth.oauth.OAuthHmacSigner)

Aggregations

OAuthHmacSigner (com.google.api.client.auth.oauth.OAuthHmacSigner)8 OAuthParameters (com.google.api.client.auth.oauth.OAuthParameters)2 OAuthCredentialsResponse (com.google.api.client.auth.oauth.OAuthCredentialsResponse)1 OAuthGetAccessToken (com.google.api.client.auth.oauth.OAuthGetAccessToken)1 GenericUrl (com.google.api.client.http.GenericUrl)1 OkHttpClient (okhttp3.OkHttpClient)1 Request (okhttp3.Request)1 RequestBody (okhttp3.RequestBody)1 Response (okhttp3.Response)1