Class GitHubAppCredentialsSnapshotTaker
- java.lang.Object
-
- com.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
-
- org.jenkinsci.plugins.github_branch_source.GitHubAppCredentialsSnapshotTaker
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class GitHubAppCredentialsSnapshotTaker extends com.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
ACredentialsSnapshotTaker
forGitHubAppCredentials
that is a no-op.As
GitHubAppCredentials
tokens are time limited they need to be refreshed periodically. This is currently addressed by its use of thewriteReplace()
andreadResolve
, but as these credentials areUsernamePasswordCredentials
this behaviour conflicts with theUsernamePasswordCredentialsSnapshotTaker
. This SnapshotTaker restores the status quo allowing the Credentials to be replaced using the existing mechanism.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitHubAppCredentialsSnapshotTaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubAppCredentials
snapshot(GitHubAppCredentials credentials)
Class<GitHubAppCredentials>
type()
-
-
-
Method Detail
-
snapshot
public GitHubAppCredentials snapshot(GitHubAppCredentials credentials)
- Specified by:
snapshot
in classcom.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
-
type
public Class<GitHubAppCredentials> type()
- Specified by:
type
in classcom.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
-
-