Class StandardUsernameCredentialsCredentialItem

java.lang.Object
org.eclipse.jgit.transport.CredentialItem
org.jenkinsci.plugins.gitclient.jgit.StandardUsernameCredentialsCredentialItem

public class StandardUsernameCredentialsCredentialItem extends org.eclipse.jgit.transport.CredentialItem
Represents credentials suitable for use over SSH.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jgit.transport.CredentialItem

    org.eclipse.jgit.transport.CredentialItem.CharArrayType, org.eclipse.jgit.transport.CredentialItem.InformationalMessage, org.eclipse.jgit.transport.CredentialItem.Password, org.eclipse.jgit.transport.CredentialItem.StringType, org.eclipse.jgit.transport.CredentialItem.Username, org.eclipse.jgit.transport.CredentialItem.YesNoType
  • Constructor Summary

    Constructors
    Constructor
    Description
    StandardUsernameCredentialsCredentialItem(String promptText, boolean maskValue)
    Initialize a prompt for a single StandardCredentials item.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
    Returns the current value.
    void
    setValue(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials newValue)
    Sets the current value.

    Methods inherited from class org.eclipse.jgit.transport.CredentialItem

    getPromptText, isValueSecure

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StandardUsernameCredentialsCredentialItem

      public StandardUsernameCredentialsCredentialItem(String promptText, boolean maskValue)
      Initialize a prompt for a single StandardCredentials item.
      Parameters:
      promptText - prompt to display to the user alongside of the input field. Should be sufficient text to indicate what to supply for this item.
      maskValue - true if the value should be masked from displaying during input. This should be true for passwords and other secrets, false for names and other public data.
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in class org.eclipse.jgit.transport.CredentialItem
    • getValue

      public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getValue()
      Returns the current value.
      Returns:
      the current value.
    • setValue

      public void setValue(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials newValue)
      Sets the current value.
      Parameters:
      newValue - the new value.