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.Helpers| Constructor and Description |
|---|
UsernamePasswordCredentialsImpl(CredentialsScope scope,
String id,
String description,
String username,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
hudson.util.Secret |
getPassword()
Returns the Password.
|
String |
getUsername()
Returns the username.
|
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 hudson.util.Secret getPassword()
getPassword in interface PasswordCredentials@NonNull public String getUsername()
getUsername in interface UsernameCredentialsCopyright © 2016–2018. All rights reserved.