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
Constructors Constructor Description UsernamePasswordCredentialsSnapshotTaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardUsernamePasswordCredentials
snapshot(StandardUsernamePasswordCredentials credentials)
Create a self-contained version of thisCredentials
that does not require access to any external files or resources.Class<StandardUsernamePasswordCredentials>
type()
The type of credentials that thisCredentialsSnapshotTaker
operates on.
-
-
-
Method Detail
-
type
public Class<StandardUsernamePasswordCredentials> 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.
-
-