public class CBTCredentials
extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
implements com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
CBTCredentials.DescriptorImpl |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorcom.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider| Modifier and Type | Field and Description |
|---|---|
static com.cloudbees.plugins.credentials.domains.DomainRequirement |
DOMAIN_REQUIREMENT |
| Constructor and Description |
|---|
CBTCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope,
java.lang.String username,
java.lang.String authkey,
java.lang.String id,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<CBTCredentials> |
all(hudson.model.Item context) |
static java.util.List<CBTCredentials> |
all(hudson.model.ItemGroup context) |
static hudson.util.ListBoxModel |
fillCredentialsIdItems(hudson.model.ItemGroup<?> context) |
java.lang.String |
getAuthkey() |
static CBTCredentials |
getCredentials(hudson.model.AbstractItem buildItem,
java.lang.String credentialsId) |
static CBTCredentials |
getCredentialsById(hudson.model.Item context,
java.lang.String id) |
hudson.util.Secret |
getPassword() |
java.lang.String |
getUsername() |
static hudson.util.FormValidation |
testCredentials(java.lang.String username,
java.lang.String authkey) |
equals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic static final com.cloudbees.plugins.credentials.domains.DomainRequirement DOMAIN_REQUIREMENT
@DataBoundConstructor
public CBTCredentials(@CheckForNull
com.cloudbees.plugins.credentials.CredentialsScope scope,
@CheckForNull
java.lang.String username,
@CheckForNull
java.lang.String authkey,
@CheckForNull
java.lang.String id,
@CheckForNull
java.lang.String description)
public java.lang.String getUsername()
getUsername in interface com.cloudbees.plugins.credentials.common.UsernameCredentialspublic hudson.util.Secret getPassword()
getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentialspublic java.lang.String getAuthkey()
public static java.util.List<CBTCredentials> all(hudson.model.ItemGroup context)
public static java.util.List<CBTCredentials> all(hudson.model.Item context)
public static CBTCredentials getCredentials(hudson.model.AbstractItem buildItem, java.lang.String credentialsId)
public static CBTCredentials getCredentialsById(hudson.model.Item context, java.lang.String id)
public static hudson.util.ListBoxModel fillCredentialsIdItems(@AncestorInPath
hudson.model.ItemGroup<?> context)
public static hudson.util.FormValidation testCredentials(java.lang.String username,
java.lang.String authkey)