Class 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 Detail

      • StandardUsernameCredentialsCredentialItem

        public StandardUsernameCredentialsCredentialItem​(String promptText,
                                                         boolean maskValue)
        Initialize a prompt for a single StandardCredentials item.
        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 Detail

      • 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.
        the current value.
      • setValue

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