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.BaseStandardCredentialsDescriptor
StandardUsernamePasswordCredentials.NameProvider
IdCredentials.Helpers
ExtensionPoint.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.
|
equals, getDescription, getId, hashCode
getDescriptor, getScope
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDescription
getId
getDescriptor, 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 UsernameCredentials
Copyright © 2016–2021. All rights reserved.