Class OAuthClient
- java.lang.Object
-
- io.jenkins.plugins.google.analyze.code.security.client.OAuthClient
-
public class OAuthClient extends Object
OAuthClient provides Client for managing OAuth token lifecycle.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateAccessToken(@NonNull String credential, @NonNull Collection<String> scopes)
Generates OAuth access token with the help of GCP Service Account Credentials.static OAuthClient
getInstance()
Returns an instance ofOAuthClient
-
-
-
Method Detail
-
getInstance
public static OAuthClient getInstance()
Returns an instance ofOAuthClient
-
generateAccessToken
public String generateAccessToken(@NonNull @NonNull String credential, @NonNull @NonNull Collection<String> scopes)
Generates OAuth access token with the help of GCP Service Account Credentials.- Parameters:
credential
- GCP Service Account Credentials.scopes
- Collection of scopes to request.
-
-