public class Connector extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAliases()
Used for class and package name retrocompatibility.
|
static hudson.util.ListBoxModel |
listCheckoutCredentials(hudson.model.Item context,
String apiUri)
Populates a
ListBoxModel with the checkout credentials appropriate for the supplied context against the
supplied API endpoint. |
static hudson.util.ListBoxModel |
listScanCredentials(hudson.model.Item context,
String apiUri)
Populates a
ListBoxModel with the scan credentials appropriate for the supplied context against the
supplied API endpoint. |
static com.cloudbees.plugins.credentials.common.StandardCredentials |
lookupScanCredentials(hudson.model.Item context,
String apiUri,
String scanCredentialsId)
Resolves the specified scan credentials in the specified context for use against the specified API endpoint.
|
static void |
setProxy(String host) |
@Initializer(before=PLUGINS_STARTED) public static void addAliases()
@CheckForNull public static com.cloudbees.plugins.credentials.common.StandardCredentials lookupScanCredentials(@CheckForNull hudson.model.Item context, @CheckForNull String apiUri, @CheckForNull String scanCredentialsId)
context - the context.apiUri - the API endpoint.scanCredentialsId - the credentials to resolve.StandardCredentials or nullpublic static hudson.util.ListBoxModel listScanCredentials(hudson.model.Item context,
String apiUri)
ListBoxModel with the scan credentials appropriate for the supplied context against the
supplied API endpoint.context - the context.apiUri - the api endpoint.ListBoxModel.public static hudson.util.ListBoxModel listCheckoutCredentials(hudson.model.Item context,
String apiUri)
ListBoxModel with the checkout credentials appropriate for the supplied context against the
supplied API endpoint.context - the context.apiUri - the api endpoint.ListBoxModel.public static void setProxy(String host)
Copyright © 2016–2019. All rights reserved.