public class UsernamePasswordCredentialsImpl extends BaseStandardCredentials implements StandardUsernamePasswordCredentials
StandardUsernamePasswordCredentials.| Modifier and Type | Class and Description |
|---|---|
static class |
UsernamePasswordCredentialsImpl.DescriptorImpl
Descriptor to use for subclasses of
BaseStandardCredentials. |
BaseStandardCredentials.BaseStandardCredentialsDescriptorStandardUsernamePasswordCredentials.NameProviderIdCredentials.HelpersExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
UsernamePasswordCredentialsImpl(CredentialsScope scope,
String id,
String description,
String username,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Secret |
getPassword()
Returns the Password.
|
String |
getUsername()
Returns the username.
|
boolean |
isUsernameSecret()
Whether
UsernameCredentials.getUsername() should be considered a secret for purposes of behaviors like masking in build logs. |
void |
setUsernameSecret(boolean usernameSecret) |
equals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDescriptiongetIdgetDescriptor, getScope@DataBoundConstructor
public UsernamePasswordCredentialsImpl(@CheckForNull
CredentialsScope scope,
@CheckForNull
String id,
@CheckForNull
String description,
@CheckForNull
String username,
@CheckForNull
String password)
scope - the credentials scopeid - the ID or null to generate a new one.description - the description.username - the username.password - the password.@NonNull public Secret getPassword()
getPassword in interface PasswordCredentials@NonNull public String getUsername()
getUsername in interface UsernameCredentialspublic boolean isUsernameSecret()
UsernameCredentialsUsernameCredentials.getUsername() should be considered a secret for purposes of behaviors like masking in build logs.isUsernameSecret in interface UsernameCredentials@DataBoundSetter public void setUsernameSecret(boolean usernameSecret)
Copyright © 2016–2021. All rights reserved.