Class UserCredentials

  • All Implemented Interfaces:
    com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.PasswordCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials, com.cloudbees.plugins.credentials.common.UsernameCredentials, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

    public class UserCredentials
    extends com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
    implements com.cloudbees.plugins.credentials.common.StandardCredentials
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UserCredentials.DescriptorImpl  
      • Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

        com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
      • Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

        com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
      • Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

        com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
      • Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials

        com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      UserCredentials​(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String username, String password)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static UserCredentials get​(String credentialId, Item item)
      The credentials of this type with this credentialId that apply to this item
      • Methods inherited from class com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl

        getPassword, getUsername, isUsernameSecret, setUsernameSecret
      • Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

        equals, getDescription, getId, hashCode
      • Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

        getDescriptor, getScope
      • Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

        getDescriptor, getScope
      • Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

        getId
      • Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

        getDescription
    • Constructor Detail

      • UserCredentials

        @DataBoundConstructor
        public UserCredentials​(com.cloudbees.plugins.credentials.CredentialsScope scope,
                               String id,
                               String description,
                               String username,
                               String password)
    • Method Detail

      • get

        public static UserCredentials get​(@Nonnull
                                          String credentialId,
                                          @Nullable
                                          Item item)
        The credentials of this type with this credentialId that apply to this item
        Parameters:
        credentialId - the id of the credential
        item - the optional item (context)
        Returns:
        the credentials or null if no matching credentials exist