Interface GithubAppsService
- All Known Implementing Classes:
GithubAppsServiceImpl
public interface GithubAppsService
Service interface for interacting with GitHub Apps to obtain access tokens.
- Since:
- 12.0
-
Method Summary
-
Method Details
-
getAccessToken
@NotNull @NotNull Optional<String> getAccessToken(@NotNull @NotNull String appId, @NotNull @NotNull String privateKey, @NotNull @NotNull String apiBaseUrl, @NotNull @NotNull String owner, @NotNull @NotNull String repo) Retrieves an access token for the specified repository.- Parameters:
appId- the GitHub App IDprivateKey- the private key of the GitHub AppapiBaseUrl- the base URL of the GitHub APIowner- the owner of the repositoryrepo- the name of the repository- Returns:
- an Optional containing the access token if successful, otherwise an empty Optional
-