Package com.cloudbees.jenkins
Class Credential
- java.lang.Object
-
- com.cloudbees.jenkins.Credential
-
@Deprecated public class Credential extends Object
Deprecated.since 1.13.0 plugin uses credentials-plugin to manage tokens. All configuration moved toGitHubPluginConfig
which can be fetched viaGitHubPlugin.configuration()
. You can fetch corresponding config with creds byGitHubPluginConfig.findGithubConfig(Predicate)
which returns iterable over authorized nonnullGitHub
s matched your predicateCredential to access GitHub. Used only for migration.- Author:
- Kohsuke Kawaguchi
- See Also:
GitHubPluginConfig
,GitHubServerConfig
-
-
Constructor Summary
Constructors Constructor Description Credential(String username, String apiUrl, String oauthAccessToken)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getApiUrl()
Deprecated.String
getOauthAccessToken()
Deprecated.String
getUsername()
Deprecated.org.kohsuke.github.GitHub
login()
Deprecated.see class javadoc.
-
-
-
Method Detail
-
getUsername
public String getUsername()
Deprecated.
-
getApiUrl
public String getApiUrl()
Deprecated.
-
getOauthAccessToken
public String getOauthAccessToken()
Deprecated.
-
login
@CheckForNull @Deprecated public org.kohsuke.github.GitHub login() throws IOException
Deprecated.see class javadoc. Now any instance return same GH. Please use new api to fetch another- Returns:
- authorized first
GitHub
from global config or null if no any - Throws:
IOException
- never thrown, but in signature for backward compatibility
-
-