public class Credential extends hudson.model.AbstractDescribableImpl<Credential>
| Modifier and Type | Class and Description |
|---|---|
static class |
Credential.CredentialDescriptor |
static class |
Credential.SecondaryServerInfo |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<Credential,java.lang.String> |
CREDENTIAL_INDEX |
java.lang.String |
credentialsId |
java.lang.String |
name |
hudson.util.Secret |
password |
boolean |
useGlobalCredential |
java.lang.String |
username |
| Constructor and Description |
|---|
Credential(java.lang.String name,
java.lang.String username,
hudson.util.Secret password,
java.lang.String credentialsId,
boolean useGlobalCredential,
Credential.SecondaryServerInfo secondaryServerInfo) |
| Modifier and Type | Method and Description |
|---|---|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(hudson.model.Project context) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCredentialsId() |
java.lang.String |
getKey() |
java.lang.String |
getName() |
hudson.util.Secret |
getPassword() |
java.lang.String |
getSecondaryProxyUrl() |
Credential.SecondaryServerInfo |
getSecondaryServerInfo() |
java.lang.String |
getSecondaryServerUrl() |
java.lang.String |
getUsername() |
int |
hashCode() |
boolean |
isUseGlobalCredential() |
static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials |
lookupSystemCredentials(java.lang.String credentialsId,
hudson.model.ItemGroup<?> item) |
java.lang.String |
resolveProxyUrl(java.lang.String defaultUrl) |
java.lang.String |
resolveServerUrl(java.lang.String defaultUrl) |
boolean |
showGolbalCredentials() |
boolean |
showSecondaryServerSettings() |
java.lang.String |
toString() |
public static final com.google.common.base.Function<Credential,java.lang.String> CREDENTIAL_INDEX
public final java.lang.String name
public final java.lang.String username
public final hudson.util.Secret password
public final java.lang.String credentialsId
public final boolean useGlobalCredential
@DataBoundConstructor
public Credential(java.lang.String name,
java.lang.String username,
hudson.util.Secret password,
java.lang.String credentialsId,
boolean useGlobalCredential,
Credential.SecondaryServerInfo secondaryServerInfo)
public java.lang.String getKey()
public java.lang.String getName()
public java.lang.String getUsername()
public hudson.util.Secret getPassword()
public java.lang.String getCredentialsId()
public Credential.SecondaryServerInfo getSecondaryServerInfo()
public java.lang.String getSecondaryServerUrl()
public java.lang.String getSecondaryProxyUrl()
public java.lang.String resolveServerUrl(java.lang.String defaultUrl)
public java.lang.String resolveProxyUrl(java.lang.String defaultUrl)
public boolean showSecondaryServerSettings()
public boolean showGolbalCredentials()
public boolean isUseGlobalCredential()
public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
hudson.model.Project context)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials lookupSystemCredentials(java.lang.String credentialsId,
hudson.model.ItemGroup<?> item)