Package com.cloudbees.jenkins
Class Credential
java.lang.Object
com.cloudbees.jenkins.Credential
Deprecated.
Credential to access GitHub.
Used only for migration.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCredential
(String username, String apiUrl, String oauthAccessToken) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.org.kohsuke.github.GitHub
login()
Deprecated.see class javadoc.
-
Field Details
-
username
Deprecated. -
apiUrl
Deprecated. -
oauthAccessToken
Deprecated.
-
-
Constructor Details
-
Credential
Deprecated.
-
-
Method Details
-
getUsername
Deprecated. -
getApiUrl
Deprecated. -
getOauthAccessToken
Deprecated. -
login
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
-
GitHubPluginConfig
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 predicate