public class PerfectoCredentials
extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
implements com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
PerfectoCredentials.DescriptorImpl |
static class |
PerfectoCredentials.ShortLivedConfig |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorcom.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvidercom.cloudbees.plugins.credentials.common.IdCredentials.HelpersExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
protected Secret |
apiKey |
protected String |
cloudName |
protected PerfectoCredentials.ShortLivedConfig |
shortLivedConfig |
protected String |
userName |
| Constructor and Description |
|---|
PerfectoCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String userName,
String cloudName,
String apiKey,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static List<PerfectoCredentials> |
all(Item context) |
static List<PerfectoCredentials> |
all(ItemGroup context) |
Secret |
getApiKey() |
String |
getCloudName() |
static PerfectoCredentials |
getCredentials(AbstractBuild build) |
static PerfectoCredentials |
getCredentials(AbstractProject project) |
static PerfectoCredentials |
getCredentialsById(Item context,
String id) |
Secret |
getPassword() |
static PerfectoCredentials |
getPerfectoCredentials(AbstractBuild build,
PerfectoBuildWrapper wrapper) |
PerfectoCredentials.ShortLivedConfig |
getShortLivedConfig() |
String |
getUsername() |
String |
getUserName() |
static String |
migrateToCredentials(String username,
String cloudName,
String accessKey,
String migratedFrom) |
void |
setShortLivedConfig(PerfectoCredentials.ShortLivedConfig shortLivedConfig) |
static FormValidation |
testAuthentication(String username,
String cloudName,
String apikey) |
equals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitprotected String userName
protected String cloudName
protected Secret apiKey
protected PerfectoCredentials.ShortLivedConfig shortLivedConfig
@DataBoundConstructor public PerfectoCredentials(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, String userName, @CheckForNull String cloudName, @CheckForNull String apiKey, @CheckForNull String description)
public PerfectoCredentials.ShortLivedConfig getShortLivedConfig()
@DataBoundSetter public void setShortLivedConfig(PerfectoCredentials.ShortLivedConfig shortLivedConfig)
public static PerfectoCredentials getCredentials(AbstractProject project)
public static FormValidation testAuthentication(String username, String cloudName, String apikey)
public static PerfectoCredentials getCredentials(AbstractBuild build)
@NonNull public Secret getPassword()
getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentials@NonNull public String getUserName()
@NonNull public Secret getApiKey()
public static PerfectoCredentials getPerfectoCredentials(AbstractBuild build, PerfectoBuildWrapper wrapper)
public String getCloudName()
public static String migrateToCredentials(String username, String cloudName, String accessKey, String migratedFrom) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic static List<PerfectoCredentials> all(ItemGroup context)
public static List<PerfectoCredentials> all(Item context)
public static PerfectoCredentials getCredentialsById(Item context, String id)
public String getUsername()
getUsername in interface com.cloudbees.plugins.credentials.common.UsernameCredentialsCopyright © 2016–2020. All rights reserved.