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 |
Constructor and Description |
---|
Credential(java.lang.String name,
java.lang.String username,
hudson.util.Secret password,
java.lang.String credentialsId,
Credential.SecondaryServerInfo secondaryServerInfo,
boolean useGlobalCredential) |
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() |
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
@DataBoundConstructor public Credential(java.lang.String name, java.lang.String username, hudson.util.Secret password, java.lang.String credentialsId, Credential.SecondaryServerInfo secondaryServerInfo, boolean useGlobalCredential)
public java.lang.String getCredentialsId()
public java.lang.String getKey()
public java.lang.String getName()
public java.lang.String getUsername()
public hudson.util.Secret getPassword()
public boolean isUseGlobalCredential()
public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath hudson.model.Project context)
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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials lookupSystemCredentials(java.lang.String credentialsId, hudson.model.ItemGroup<?> item)