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 singleStandardCredentials
item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
getValue()
Returns the current value.void
setValue(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials newValue)
Sets the current value.
-
-
-
Constructor Detail
-
StandardUsernameCredentialsCredentialItem
public StandardUsernameCredentialsCredentialItem(String promptText, boolean maskValue)
Initialize a prompt for a singleStandardCredentials
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 Detail
-
clear
public void clear()
- Specified by:
clear
in classorg.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.
-
-