Class GitHubLoginFunction

java.lang.Object
org.jenkinsci.plugins.github.util.misc.NullSafeFunction<GitHubServerConfig,org.kohsuke.github.GitHub>
org.jenkinsci.plugins.github.internal.GitHubLoginFunction
All Implemented Interfaces:
com.google.common.base.Function<GitHubServerConfig,org.kohsuke.github.GitHub>, Function<GitHubServerConfig,org.kohsuke.github.GitHub>

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class GitHubLoginFunction extends NullSafeFunction<GitHubServerConfig,org.kohsuke.github.GitHub>
Converts server config to authorized GH instance on applyNullSafe(GitHubServerConfig). If login process is not successful it returns null Uses okHttp (https://github.com/square/okhttp) as connector to have ability to use cache and proxy The capacity of cache can be changed in advanced section of global configuration for plugin Don't use this class in any place directly as of it have public static factory GitHubServerConfig.loginToGithub()
Author:
lanwen (Merkushev Kirill)
See Also:
  • Constructor Details

    • GitHubLoginFunction

      public GitHubLoginFunction()
  • Method Details