public interface Credentials extends Describable<Credentials>, Serializable, ExtensionPoint
BaseCredentials
rather than implement this
interface. The interface is provided:ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Method and Description |
---|---|
default Credentials |
forRun(Run<?,?> context)
Optionally produce a special value when used in the context of a particular build.
|
CredentialsDescriptor |
getDescriptor() |
CredentialsScope |
getScope()
Gets the scope of the credential.
|
@CheckForNull CredentialsScope getScope()
@NonNull CredentialsDescriptor getDescriptor()
getDescriptor
in interface Describable<Credentials>
@NonNull default Credentials forRun(@NonNull Run<?,?> context)
context
- a build wishing to consume these credentialsthis
CredentialsProvider.findCredentialById(java.lang.String, java.lang.Class, hudson.model.Run, com.cloudbees.plugins.credentials.domains.DomainRequirement...)
Copyright © 2016–2022. All rights reserved.