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>
A
CredentialsSnapshotTaker for GitHubAppCredentials 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 the writeReplace() and
readResolve, but as these credentials are UsernamePasswordCredentials this behaviour
conflicts with the UsernamePasswordCredentialsSnapshotTaker. 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 -
Method Summary
-
Constructor Details
-
GitHubAppCredentialsSnapshotTaker
public GitHubAppCredentialsSnapshotTaker()
-
-
Method Details
-
snapshot
- Specified by:
snapshotin classcom.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
-
type
- Specified by:
typein classcom.cloudbees.plugins.credentials.CredentialsSnapshotTaker<GitHubAppCredentials>
-