Class UsernamePasswordCredentialsSnapshotTaker
java.lang.Object
com.cloudbees.plugins.credentials.CredentialsSnapshotTaker<StandardUsernamePasswordCredentials>
com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsSnapshotTaker
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class UsernamePasswordCredentialsSnapshotTaker
extends CredentialsSnapshotTaker<StandardUsernamePasswordCredentials>
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsnapshot
(StandardUsernamePasswordCredentials credentials) Create a self-contained version of thisCredentials
that does not require access to any external files or resources.type()
The type of credentials that thisCredentialsSnapshotTaker
operates on.
-
Constructor Details
-
UsernamePasswordCredentialsSnapshotTaker
public UsernamePasswordCredentialsSnapshotTaker()
-
-
Method Details
-
type
The type of credentials that thisCredentialsSnapshotTaker
operates on.- Specified by:
type
in classCredentialsSnapshotTaker<StandardUsernamePasswordCredentials>
- Returns:
- the type of credentials that this
CredentialsSnapshotTaker
operates on.
-
snapshot
public StandardUsernamePasswordCredentials snapshot(StandardUsernamePasswordCredentials credentials) Create a self-contained version of thisCredentials
that does not require access to any external files or resources.- Specified by:
snapshot
in classCredentialsSnapshotTaker<StandardUsernamePasswordCredentials>
- Parameters:
credentials
- the credentials- Returns:
- either the original credentials if the
Credentials
is already self-contained or a new identical instance that is self-contained.
-