Class GoogleClient
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.google.GoogleClient
-
public class GoogleClient extends Object
-
-
Constructor Summary
Constructors Constructor Description GoogleClient(String googleOauthUrl, String googleApiUrl, com.google.gson.Gson gson, KeyStore keyStore, HTTPRequestBuilder.RequestHandler requestHandler, String rootUrl, String clientId, String clientSecret, boolean allowNonSecureConnections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleAccessToken
exchangeAuthCodeForAccessToken(String code, String redirectUrl)
BufferedImage
getMyAvatar(String accessToken)
GoogleUser
getProfile(String accessToken)
-
-
-
Constructor Detail
-
GoogleClient
public GoogleClient(@NotNull String googleOauthUrl, @NotNull String googleApiUrl, @NotNull com.google.gson.Gson gson, @Nullable KeyStore keyStore, @NotNull HTTPRequestBuilder.RequestHandler requestHandler, @NotNull String rootUrl, @NotNull String clientId, @NotNull String clientSecret, boolean allowNonSecureConnections)
-
-
Method Detail
-
exchangeAuthCodeForAccessToken
@NotNull public GoogleAccessToken exchangeAuthCodeForAccessToken(@NotNull String code, @NotNull String redirectUrl) throws Exception
- Throws:
Exception
-
getMyAvatar
@Nullable public BufferedImage getMyAvatar(@NotNull String accessToken)
-
getProfile
@NotNull public GoogleUser getProfile(@NotNull String accessToken)
-
-