Class GitHubAppCredentialsSnapshotTaker

  • All Implemented Interfaces:

    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.