public class UserCredentials
extends com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
implements com.cloudbees.plugins.credentials.common.StandardCredentials
Modifier and Type | Class and Description |
---|---|
static class |
UserCredentials.DescriptorImpl |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
UserCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String description,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
static UserCredentials |
get(String credentialId,
Item item)
The credentials of this type with this credentialId that apply to this item
|
getPassword, getUsername
equals, getDescription, getId, hashCode
getDescriptor, getScope
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public static UserCredentials get(@Nonnull String credentialId, @Nullable Item item)
credentialId
- the id of the credentialitem
- the optional item (context)null
if no matching credentials existCopyright © 2016–2021. All rights reserved.